Spring Session Redis fails to deserialize with ClassNotFoundException
org.springframework.data.redis.serializer.SerializationException: Cannot deserialize; nested exception is org.springframework.core.serializer.support.SerializationFailedException:Failed to deserialize...
View ArticleSpring Cache Exception: io.lettuce.core.RedisCommandExecutionException: ERR...
I use Spring Boot Version: 2.1.4.RELEASE When I set spring.cache.redis.time-to-live=20000 in application.yml file.I got a exception. What should I do when I want to add TTL in redis cache ?How to use...
View ArticleCorrect the classpath of your application so that it contains a single...
I'd like to work with Redis for manipulating sessions.But I get failure when running the spring boot app.So I guess that this error is coming from maven dependencies especially version conflicts.I am...
View ArticleHow can I set value from application.properties (using @Value or any other...
I tried to do something like that:@RedisHash("${my.property}")where my.property is my property from application.properties file.But it didn't work.Any way to set RedisHash's annotation's value from...
View ArticleHow do I check if the value is already present in Redis through RMap via...
I am new to Redisson and having an issue with the basic operation.I am trying to see if a value under a particular key in a Hashmap is already present in the underlying Redis store and return it.I must...
View ArticleJdkSerializationRedisSerializer in Spring Boot not not change
My objects do not implement serialization and I do not want to rewrite for this. I tried to replace JdkSerializationRedisSerializer with Jackson2JsonRedisSerialize, I have tried many options but it...
View ArticleLettuce throws NPE when the dependencis has spring-cloud-starter-sleuth
I use spring-session-data-redis to manage sessions. It will get session data from redis before every request. But it throws a NPE when get session from redis. And if I remove...
View ArticleHow to setup a connection to Redis Sentinel using Jedis library? [closed]
How do I setup a connection to a Redis Sentinel server/cluster using the Jedis library?
View ArticleRedis, listening to pubsub events and turning them into a stream for more...
Using Redis, quite familiar. Now, I am facing a situation where the normal PUBSUB mechanism won't really be a great way to handle certain situations.Take a hash where we say store a reference to...
View ArticleToo many RedisCommandTimeoutException in lettuce
We are facing this specific issue using lettuce redis library. We are receiving too many RedisCommandTimeoutException. We have set a timeout of 2 secs in redis-cli and 10 ms in redis slow logs. While...
View ArticleSpring Boot: Redis CRUD Repository findById or findAll always returns...
Hi Team,I am using Spring Boot 2.3.12.RELEASE which internally uses Spring Data Redis 2.3.9.RELEASE as a managed dependency.When I am trying to save an object to the Redis cache using Spring Boot CRUD...
View ArticleEmbedded Redis server fails to start
I have a Springboot project and as part of my tests I use embedded Redis server. When I run a specific test class with Intellij it works fine and tests pass. But when I use mvn clean test command to...
View ArticleReturn Set from Lua Script
Lua Script:local r = {}for _, m in pairs(ARGV) do if redis.call('SISMEMBER', KEYS[1], m) == 1 then r[#r + 1] = m endendreturn rI am using redis-templete of sprint boot@Autowiredprivate...
View ArticleIs there some kind of lock / semaphore with idle TTL
I have the following case.In order to prevent concurrency resource access we are using RPermitExpirableSemaphore as a lock.From Expirable I would expect that "lock key" in Redis would be deleted after...
View ArticleRedisTemplate nullPointException
I am working with jedis and redisTemplate library but when I declare hashoperations hashOps and trying to get values, I came up with NullPointExteption. RedisTemplate<String, String>...
View Articlejava.lang.ClassCastException: com.sun.proxy.$Proxy219 cannot be cast to...
This is a function for redis, pipeline. It used before, but today when I test this function. It not works.public List<Object> hgetpipeline(List<String> keys) { List<Object> results =...
View ArticleRedisson acquires new connection for each request
I am currently testing reddison client for redis. For a simple RMap set and get I am getting a time of 10ms. When comparing it to jedis, jedis only takes 2 ms to complete set and get. My reddison test...
View ArticleRetrieve existing key-value pair present in Redis using Redisson
I want to fetch existing key value pair from redis using redisson. The issue is that I did not enter that key value pair through redisson, and I am not able to find any function from documentation to...
View ArticleAWS ElastiCache Redis with Java
I am trying to store key/value in ElastiCache Redis using Jedis in Spring.This are the beans -@Beanpublic JedisConnectionFactory rirStoreJedisConnectionFactory() { JedisConnectionFactory...
View ArticleNoSuchMethodError:...
I am upgrading the spring boot from 1.5.3 version to 2.1.6 release. I have added below...
View Article