skip to Main Content

Accessing in-transit encryption enabled Elasticache with Spring Redis, throws an error for the stringRedisTemplate.keys method

We have an in-transit encryption enabled AWS Elasticache instance. We're trying to access the instance from our Spring boot microservice with Spring data redis SSL enabled. LettuceClientConfiguration clientConfig = LettuceClientConfiguration.builder() .useSsl().and() .shutdownTimeout(Duration.ZERO) .build(); return new LettuceConnectionFactory(new RedisStandaloneConfiguration(redisHost, redisPort), clientConfig); But…

VIEW QUESTION

Unable to connect to Redis | Spring Boot

I've a redis service on upstash.io but not able to connect to it from my spring boot application This is my redis config @Configuration public class RedisConfig { @Bean public LettuceConnectionFactory redisConnectionFactory() { RedisStandaloneConfiguration redisStandaloneConfiguration = new RedisStandaloneConfiguration(); redisStandaloneConfiguration.setHostName("myhost"); redisStandaloneConfiguration.setPort(6379);…

VIEW QUESTION

How to subscribe redis key space event with spring

My Environment Mac Ventura 13.6.3 Temurin 17 SpringBoot 3.2.1 org.springframework.boot:spring-boot-starter-data-redis redis cluster running on local machine. (localhost: 7001, localhost: 7002, localhost: 7003 What I want to do I want to receive expire event from redis cluster with spring. What I…

VIEW QUESTION

spring-boot-starter-data-redis "data.mapping.Parameter does not have a name error" when upgrade spring boot from 3.1 to 3.2

After updating Spring Boot from 3.1 to 3.2, I followed the instructions to add the -parameters flag for Java compilation. Despite this, I'm still encountering the same error, indicated by the stack trace I received. **org.springframework.data.mapping.MappingException: Parameter org.springframework.data.mapping.Parameter@57ced0b5 does not…

VIEW QUESTION

Spring Boot Upgrade Redis – Null key returned for cache operation

After the spring 3.x upgrade Redis Cache gives Null key returned for cache operation spring-boot version: 3.2.2 <dependency> <groupId>redis.clients</groupId> <artifactId>jedis</artifactId> <version>5.1.0</version> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId> <exclusions> <exclusion> <groupId>io.lettuce</groupId> <artifactId>lettuce-core</artifactId> </exclusion> </exclusions> </dependency> Cachable Method: @Cacheable(value = "user", key = "#username",…

VIEW QUESTION

Unable to get collection from Redis cache

We are using Redis cache for storing data in cache in our application. We are directly using @Cacheable to allow caching and using redis underneath to cache. Below is the config Redis Config - @Configuration @EnableCaching @RequiredArgsConstructor public class RedisConfig…

VIEW QUESTION
Back To Top
Search