Questions tagged [redis-cache]

Redis is an open source (BSD licensed), in-memory data structure store, use this tag for specific cache usage

Redis is an open source (BSD licensed), in-memory data structure store, use this tag for specific cache usage.

Redis is an open source (BSD licensed), in-memory data structure store, used as a database, cache and message broker. It supports data structures such as strings, hashes, lists, sets, sorted sets with range queries, bitmaps, hyperloglogs and geospatial indexes with radius queries. Redis has built-in replication, Lua scripting, LRU eviction, transactions and different levels of on-disk persistence, and provides high availability via Redis Sentinel and automatic partitioning with Redis Cluster.

Site: https://redis.io/

How to Use Azure Redis Cache: https://learn.microsoft.com/en-us/azure/redis-cache/cache-dotnet-how-to-use-azure-redis-cache

143 questions
1
vote
1 answer

How to store non persistent java object in redis cache java

I have EmployeeDto as an Object, which is not synced with the database. I want to put EmployeeDto inside Redis cache. I have gone through an example where I can see database entity is getting cached using Redis cache but how can we store and…
1
vote
1 answer

Does ioredis mset() accepts options to set expiry, like set operation does?

Here is my code: const Redis = require('ioredis'); const client = new Redis(); // multi set client.mset({'key1': 'value1'}); Question is does mset operation accept options to set TTL like set command does? // sample for set client.set(key, value,…
jagadeesh m
  • 73
  • 2
  • 9
1
vote
2 answers

How to expose Prometheus metrics with RedisCacheManager?

I have a Spring Boot 2 application that has caching with Caffeine cache manager already implemented. Caching is implemented in a standard way with @Cacheable, @CacheEvict, @CachePut annotations. I migrated the app for using Redis to have caching…
Vitalii
  • 10,091
  • 18
  • 83
  • 151
1
vote
1 answer

How to handle race condition on Django-Channels consumer?

I'm implementing a service with django-channel, I have done some explanations about my issues but you can just scroll down to bottom part where I ask my questions and ignore them. In this service I'm using a async caching system to raise service's…
1
vote
1 answer

Async calls to read from redis cache in order to reduce the response time

Given list of employees List<EMPLOYEE> empList; POJO class: Employee{ int id; String name; String address; } Input: empID as key to redis cache Redis Cache sample JSON data: (KEY)-> (VALUE) 1 -> {name:xyz, address:USA} 2 -> {name:ABC,…
1
vote
1 answer

How do you use Spring Circuit Breaker with Cache Manager?

I've seen lots of examples of using things like Netflix's @HystrixCommand on service methods, but is it possible to enable a circuit breaker when using one or more CacheManager instances? In other words, bypass the Spring cache if the underlying…
1
vote
1 answer

How to see value stored in Redis cache using Spring Boot

I have a Spring Boot application which implemented redis cache to cahce a method output. My use case is to store list of objects when a method is called in cache. My code looks like below. @Cacheable(value="sec-ques-list") @Override public…
springbootlearner
  • 1,220
  • 4
  • 26
  • 48
1
vote
0 answers

How to use spring data redis pipeline to process 1 million records?

I have a requirement where I have to read a file which contains around 1 million records each record in a separate line. Each record will be validated and then will be saved in Redis cache. I implemented this in a normal traditional way by reading…
pan1490
  • 939
  • 1
  • 7
  • 25
1
vote
0 answers

Springboot redis @cacheable always returning null even if data exists in redis

I am implementing redis db along with cache in my springboot application. I am inserting data in redis and using @CachePut to add it in cache and i can see the data using redis gui. While fetching the data i am using @Cacheable annotation with the…
kirti
  • 4,499
  • 4
  • 31
  • 60
1
vote
2 answers

How to run redis client with remote server?

How to run redis client with remote url and how to get list of connections are stored in redis cache? https://redis.io/commands/info
Manish
  • 113
  • 1
  • 7
1
vote
0 answers

getting Exception: redis.clients.jedis.exceptions.JedisDataException: ERR Unsupported CONFIG parameter: notify-keyspace-events

I am trying to use Redis for the session in a spring boot application using dependencies like: org.springframework.boot spring-boot-starter-data-redis
k.rohit
  • 41
  • 6
1
vote
1 answer

Redis cache showing Status not connected

I installed redis object cache on my server and then uSed this plugin to flush the caches... This worked for me for 5 to 6 days.. after that. Status not connected os showing.... I'm also using fastcgi cache. But, both was working since 5…
1
vote
0 answers

Why is it faster to get data from mysql than spring cache+redis

When I use Spring cache it takes more than twice as long as direct access to the database, but if I use redistempla to get data from Redis, it is faster than MySQL. so I can make sure that there is data in Redis , In addition, I just tested…
teng
  • 19
  • 4
1
vote
0 answers

Configuring Azure Redis session cache for ASP.NET MVC 5 web application not possible in web.config

We want to use the Azure Redis service as a session cache for our MVC 5 web application. For that we use Nuget Microsoft.Web.RedisSeessionStateProvider, which was updated to v3.0.2 recently. However, putting that specific version in the web.config…
John
  • 3,591
  • 8
  • 44
  • 72
1
vote
2 answers

Redis cache not being cleared despite setting TTL

I want the data stored in redis cache to be cleared from the cache automatically after a given period, without calling the delete method on it. In this POC, I am setting the TTL as 60 seconds. I have tried setting it in Cache manager using the API…
ScottSummers
  • 310
  • 1
  • 13