All Questions
Tagged with redis spring-boot
1,024 questions
0
votes
1
answer
42
views
Springboot refuses to utilise the custom RedisCacheManager
So I have a bit of an issue with regards to Redis. It seems that SpringBoot refuses to utilise the custom RedisCacheManager bean that I've created despite using the approppriate annotations ("@...
0
votes
0
answers
41
views
Spring Boot Redis connection refused: localhost:6379 using Docker Compose
I'm new to docker and I'm trying to run redis-server and my springboot app both on a container.
The Redis server is running fine on docker but when i try to connect my spring boot app to the redis ...
-1
votes
0
answers
32
views
Redis Key collisions when sharing DB between two or more Spring Boot Apps (Spring Cloud Gateway)
I've multiple Spring Boot based projects deployed in a Kubernetes cluster, all of them share the same Redis DB instance also hosted in the same cluster.
Some of the Apps are built as Spring Cloud ...
0
votes
1
answer
51
views
Rest API Unable to connect to Redis inside Docker
I'm having trouble connecting my Spring Boot application to Redis in a Docker environment. While my application connects successfully to PostgreSQL in the same Docker network, Redis connections fail ...
0
votes
0
answers
64
views
Warning logs when connecting to redis
I have a pool of 75 redis nodes. When I try to make the first request in my spring boot reactive, I’m getting many log warning:
defaultClusterTopologyRefresh - unable to connect to [machine name]
...
2
votes
2
answers
62
views
Does Redis save long as Int?
I've got this exception.
java.lang.ClassCastException: class java.lang.Integer cannot be cast to class java.lang.Long (java.lang.Integer and java.lang.Long are in module java.base of loader 'bootstrap'...
0
votes
1
answer
19
views
Spring Declarative Annotation-based Caching compatibity with Redis Template Implementation
When I am inserting object to redis, I am using spring annotation and when I try to get the object I am using redis template implementation. While doing so, I am getting exception.
Below is the spring ...
0
votes
1
answer
44
views
Does Redis support springframework @Cacheable(sync = true)?
I have multiple threads using a service which is annotated with @Cacheable(cacheNames = "myName", sync = true, keyGenerator = "myGenerator"). My understanding is the sync = true ...
0
votes
0
answers
56
views
Spring Redis Reactive Implementation with Time To Live TTL set by `spring.cache.redis.time-to-live` property
I am working on a reactive Spring Boot project using the spring-boot-starter-data-redis-reactive library to integrate Redis as a caching mechanism.
Before I used org.springframework.cache.CacheManager,...
0
votes
0
answers
21
views
Redis Streams uneven distribution of messages across the PEL's of multiple pods in Kubernetes environment
I'm currently running a StreamMessageListenerContainer in a Springboot application, and deployed it to Kubernetes. There's 4-6 pods in Kubernetes, but I made sure that each pod has a unique consumer ...
0
votes
0
answers
26
views
Migrate spring-data-redis 1.5.2.RELEASE to 2.3.12.RELEASE
I'm trying to migrate spring-data-redis 1.5.2.RELEASE to 2.3.12.RELEASE, but I'm finding that some methods in RedisCacheConfiguration are not in version 2.3.12.RELEASE
I have the method ...
0
votes
1
answer
39
views
how to get HMGET Redis response in spring boot using RedisTemplate
I was trying to get HMGET redis response in Spring Boot application. But I am getting array of null in response.
In redis-cli I am able to execute below HMGET command:
HMGET students "andrew"...
1
vote
1
answer
120
views
Getting "class java.lang.String cannot be cast to class java.time.LocalDate" when reading from Redis cache
I'm using Spring Boot with Redis caching and Jackson2JsonRedisSerializer for serialization. My RedisConfig is set up like this:
@Configuration
@EnableCaching
public class RedisConfig {
@Bean
...
1
vote
0
answers
51
views
How to Cache List Elements Separately Based on Unique Keys in Spring Boot with Redis?
I am using Spring Boot with Redis and I want to cache the individual elements of a list separately based on unique keys.
I have a method that generates a list of values:
@Cacheable(value = "...
0
votes
0
answers
47
views
How to verify if spring redis cache is working
I want to validate if my Redis Spring Cache is set up correctly. Below is the configuration and the function whose results are being cached. After I call the function, I see no new keys created in ...