Spring Redis issue: GetAllCacheNames from redis cache is not working with...
Hi below is my redis cache configuration, and I am trying to get all the cachename stored on redis server using:redisCacheManager.getCacheNames() but it doesnot gives me the cacheName present in my...
View ArticleSpring Redis Session + Spring Cloud issiue with sharing session to...
I'm building a microservices using Spring Boot 3.0.6 + Sprig Cloud (Eureka server, Gateway and Configuration). One of the microservices is Authentication service which implements Spring Security.The...
View ArticleHow do I set the number of connection clients in the Redis config class in java?
I tried some configurations. Snipped codes is here : I set maxConnection is 0. When I try to post data to Redis it should give an error. But the program continues to successfully run. When I check to...
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 ArticleSpring Cloud + Spring Redis Session concurrency is not working for me
I'm building microservices with Spring Cloud (Eureka Server, Cloud Gateway, Config Server).The main idea of using Spring Cloud is session sharing between microservices. Authentication service and...
View ArticleData cannot be read from REDIS
My java project can read and write data on other linux systems normally, the newly deployed production environment is the Kirin Linux system under the arm architecture, when running the web system on...
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 ArticleHow to use zset in redis effectively for schedule task processing
We have a use-case where we need to schedule jobs at different timestamps until it finishes successfully OR max attempts has reached.We are thinking of using the sorted sets available in redis for this...
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 ArticleJava Redisson unlock exception
I'm using this common code in my distributed locker service:private <T> T lockAndProcessTask(String lockKey, boolean waitForLockRelease, Supplier<T> task, Supplier<T>...
View Articleembedded-redis providing own executables
I need to use the latest version of Redis, using the library https://github.com/ozimov/embedded-redis. I can provide my own executable but is there a place where I can download executables for...
View ArticleJedis TLS connection to Redis Cluster
We are using Redis enterprise edition5 shards: host:6379 - 6383endpoint: redis-endpoint.example.com 6378Using Jedis 4.3.x, it works ok when I use JedisPooledGenericObjectPoolConfig<Connection>...
View ArticleJava Redisson Client Redis Exceptions
I'm setting up a Redis cache layer using AWS Elasticache Redis version 7.0.7I'm usign Java Redisson client version 3.16.0 and java version 1.8However one of the requirement is to setup a fallback...
View ArticleRaw use of parameterized class 'RedisTemplate' warning
This is how I declare and inject: private final RedisTemplate redisTemplate; @Autowired public SomeController(RedisTemplate redisTemplate) { this.redisTemplate = redisTemplate; }This is how I use...
View ArticleDefaultSerializer requires a Serializable payload but received an object of...
I want to cache the List in redis. Below is the service method for the same:-@Autowiredprivate RedisTemplate<String, Object> redisTemplate;@Cacheable(value = "notes", key = "#userId")public...
View ArticleIs it possible to set default TTL for each keys and keys with prefix in...
I am asking if it is possible to pre set default TTL for each cache keys when using ReactiveRedisTemplate because I can't seem to find references matching my expectation.Like when using...
View ArticleJava Redisson Client Redis Exceptions :...
I'm setting up a Redis cache layer using AWS Elasticache Redis version 7.0.7I'm usign Java Redisson client version 3.16.0 and java version 1.8However one of the requirement is to setup a fallback...
View ArticleSpring boot Redis issues (Kotlin)
i am having quite big issues to configure redis to my application. I have this config file:@Configurationclass RedisConfig {@Beanfun redisConnectionFactory(): JedisConnectionFactory? { val config =...
View ArticleNot getting the matched value with special character in redis
I have this data in redis{"data":[ {"hash":[ {"key":"key1","values":[ {"field":"DVD±R/±RW","value":"Marron foncé" }, {"field":"Two weeks","value":"Deux semaines" } ] } ] } ]}and here is the codepublic...
View ArticleJedis Issue - "Failed to connect to any host resolved for DNS name."
Whenever I try to connect to my Redis server from my Java application using Jedis, I get JedisConnectionException: Failed to connect to any host resolved for DNS name. The Java application runs on the...
View Article