Redis Template does not automatically save a phantom entity
At the risk of making a fool out of myself, I have a question regarding redis that has plagued me for 2 days.I have a basic project with spring boot 2.4.0 (spring-data-redis included).I have the...
View ArticleRedisson Queue returns same object for multiple polls in an distributed...
since I couldn't find anything explicitly explaining how to use an RQueue in an actual distributed setup that differs from the default single instance examples, I hope someone here can explain my...
View ArticleHow to do key eviction in a distributed redis cache?
The problem is that within my organization there is a redis cluster being used by several microservices. We are all persisting hashmaps with data into redis based on rediscache keys. I want to know how...
View ArticleExternalizing JSF session to Redis
I'm currently working on a project where I need to externalize the HTTP Session to Redis or something elseThe reason why I need this is, we need to scale up the JSF application with multiple instances....
View ArticleRedis Reconnectivity issue in lettuce
I am facing one issue in my Redis connectivityI am using lettuce 5.1.2 version in my project. Here the issue iswhen I am connected to Redis and for some connectivity issue, it got disconnected. I can...
View Articlehow to filter data from redis cache on multiple attributes
I am new to redis and struggling with how to filter certain objects based on certain attributes. I have a simple usecase where, there is a set of 1 million employee object stored in a redis set and I...
View ArticleStore List of data in Redis and query based on filter applied on Redis Java...
I have List of the object which I want to store in Redis.After the store, I want to retrieve based on the filter applied to it.Now I want to retrieve students who belong to a particular course and...
View ArticleHow do Lua scripts block the entire Redis server?
Let's say I have a Redis instance running and I have two clients A and B connected to it. I execute a read only operations LUA script from one of them and from the other a ready only hash operation by...
View ArticleJedis : Could not get a resource from the pool
BackgroundOur application uses Jedis-2.2.1 and connects to Redis-2.6, here's how I get jedis resource : protected static JedisWrapper getRedisUserWrite(String UDID) { if (redisUserWritePools.get(0) ==...
View ArticleUsing message queue in front of Redis, or between Redis -> database?
I have a simple use case:Newsfeeds aggregated based on posts that are linked to geopointsUsers can comment on feed postsUsers can like feed posts and commentsThe question I'm dealing with is whether I...
View ArticleCannot connect to redis instance by using redisson
I am able to connect to a redis instance by using jedis but not by using redisson.Here is my jedis configuration:@Bean public JedisConnectionFactory jedisConnectionFactory(@Qualifier("appRedis") final...
View ArticleRe generating hash value
As I am trying serialize and DE serialize custom object in to redis cache. below IsolatedTrafficData is my custom object @Data @Builder @NoArgsConstructor public class IsolatedTrafficData implements...
View ArticleDoes JCache support EJB Transaction on cache read/write?
Does JCache support EJB Transaction while cache read/write?I want to clear cache entries that added by a transactional method, if its transaction is rolled back.I am using Redis as cache provider and...
View ArticleHow to use Redis as L2 cache on Hibernate?
I have a spring boot application and need to setup Redis as l2 cache on hibernate.My prop file looks like:spring.jpa.properties.hibernate.cache.region.factory_class =...
View ArticleRedis template no clear cache
The caching still after 24 seconds, I tried to set expire on each saves caching but I want to be generic in the configuration @Bean public RedisTemplate<String, Object>...
View ArticleRedis Template hash key with expiration
I haveredisTemplate.opsForHash().put(key, hashKey, value);I need to set key and hash key expire value, and each hash key has expired value, here is the expire for just keyredisTemplate.expire(key,...
View Articlemethods of storing session in redis using spring
I am in dilemma to store session in redis using Spring and there are many methods and concepts to handle this issue. Some methods are listed below:Spring Data Redis Spring Session Spring Session...
View ArticleDelay in redis streaming messages
I am trying to implement the task processor for my application and came across redis streams and though to utilize it for task processor. In the mean time I was asked to implement delay for processing...
View ArticleI am getting the following desialization issue when deserializing from redis
I am getting the following deserialization error:error="Cannot deserialize; nested exception is org.springframework.core.serializer.support.SerializationFailedException: Failed to deserialize payload....
View ArticleRedisTemplate (Spring) doesn't expire key after timeout
I have class for operations with Redis using StringRedisTemplatepublic void addRoMap(String key, Boolean value) { redisTemplate.boundHashOps("test").put(key, value.toString());...
View Article