Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
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 ("@...
Brown Niqqar's user avatar
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 ...
RoyalPie's user avatar
-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 ...
Eduardo's user avatar
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 ...
Henrique Vital's user avatar
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] ...
user avatar
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'...
박수민's user avatar
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 ...
Happs's user avatar
  • 125
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 ...
ponder275's user avatar
  • 935
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,...
kism3t's user avatar
  • 1,361
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 ...
Tahmid Bhuiyan's user avatar
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 ...
mf117's user avatar
  • 11
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"...
JPG's user avatar
  • 1,255
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 ...
Requiet's user avatar
  • 85
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 = "...
Requiet's user avatar
  • 85
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 ...
BBloggsbott's user avatar

15 30 50 per page
1
2 3 4 5
69