Spring Redis Does Not Delete the Stream Entries
I'm using the Redis Template and I want to delete the entries of the stream after processing it. I used the below code but it didn't delete from the Redis...
View ArticleHow to correctly use GenericJackson2JsonRedisSerializer to prevent missing...
I have been trying for several days to figure out how to properly configure the GenericJackson2JsonRedisSerializer to work with my Java Pojos. Im using spring-data-redis-2.3.3.RELEASE. I have achieved...
View ArticleHow to create custom RedisTemplate for multiple serialization classes?
I am wondering if there is any way to create RedisTemplate using Jackson2JsonRedisSerializer or other JSON serializer without passing class type for serialization? (I am using jackson and ObjectMapper...
View ArticleJava spring distributed lock with redis: different lock timeout for each lock
I need to create locks for each task execution, however different tasks can have differents locks timeout. I'm using Spring distributed lock with Redis, there's a snippet of my example...
View ArticleSpring Boot Test fails on Jenkins
I've been trying to setup Redis Configuration on my spring boot project. It runs fine on my local but fails on Jenkins. There are 5 integration tests which use Redis and they are the one's which are...
View ArticleGettig RedisOutOfMemoryException
I am using Reddison to set the TTL for the keys of a HashMap.This works correctly. But while inserting a large amount of data,like 5 million in 30 min, the data still remains in Redis and does not...
View ArticleIllegalMonitorStateException - Attempt to unlock read lock, not locked by...
RLock lock = lockService.getLock(TOPICNAME_LOCK_PREFIX + topicPrefix); if (lock.tryLock(5, TimeUnit.SECONDS)) { try { // Process business CODE } catch (Exception e) { throw new...
View ArticleHow to create RedisCacheManager in spring-data 2.0.x
I'm migrating my application from spring boot 1.5.x to 2.0.x. I want to keep jedis but I have a problem with the instantiation of RedisCacheManager.Now constructor signature is...
View ArticleRedisson sometimes throw classCastException
I use Redisson client with Spring boot application.I also enable setEnableTransactionSupport(true) and transactionAware() for JPA transaction integration. @Bean public RedisTemplate<String,...
View ArticleJedisPool vs JedisPooled
Looking at the Jedis Getting Started, I understand it's better to use connection pools to be threadsafe. To do so, I would need a JedisPool and a try-with-resources statement like so:try (Jedis jedis =...
View ArticleFailed to deserialize payload. Is the byte array a result of corresponding...
My spring boot project uses spring-boot-starter-data-redis for caching on redis, Oracle database for persistent. It runs perfectly with current version 2.7.6. I've just upgraded to 3.0.5. The source...
View ArticleLettuce creates a new connection to redis before every operation
I'm using lettuce as my connectionFactory in a spring-boot application to connect to redis. It creates a new connection every time before an operation. Checked with the MONITOR command and profiler,...
View Articleliveness probe to a redis service
I have a service that is dependent on a Redis cache which is running as a separate service. I have added probes to make sure my service doesn't come up before Redis is up. However, there are times when...
View ArticleCannot get Jedis connection; Could not get a resource from the pool
I am running a batch job for every 5 minutes and I don't wanna other nodes to run the same job hence I am using Jedis lock to lock an object for 5 minutes. So that other node won't get the lock if they...
View ArticleRedisCache : TTL updating on each hit instead of DAYS
I'm trying to update a field in a cache object on each hit. Similar to rate limiting with a different purpose.My Cache Object:@Getter@Setterpublic class CacheDO implements Serializable { private static...
View ArticleSpringBoot connection to Redis : Does not appear to be caching data
I am using SpringBoot to connect to Redis. I have Web dependency on SpringBoot and my intention is to write Product information to a runtime datastructure i.e., a Map. I want to test the Cache...
View ArticleRedis slaves cache rate mismatch
We have set up 3 Redis nodes amongst which 1 is designated master(handles writes) other 2 are slave nodes and act as read replicas.We have 3 sentinels also configured for automatic failover.The client...
View ArticlePossibility to filter some spans created by Redis client
In my installation, I use Redis sentinel and it floods my spans collector with spans having db.operation | INFO like this one:I don't really understand why it happening and it is reproducible only in...
View ArticleredisTemplate.opsForHash.get(key, hashKey) is returning null instead of...
We are running this command in a multi-client, high-traffic application and it is occasionally returning null even when there is a value for it in Redis:Object result =...
View ArticleAWS Elastic Cache Reids java Spring redisson ClosedChannelException
I have an AWS Redis cluster with Cluster mode Enabled and Encryption at rest/transit Enabled with Transit encryption mode Preferred.I'm using Java spring with redisson version 3.12.0 .Below is my...
View Article