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

Caused by io.lettuce.core.rediscommandexecutionexception: moved 15596 XX.X.XXX.XX:6379 Java Spring boot

We have a spring-boot application which is deployed to lambda in AWS. Code public AbstractRedisClient getClient(String host, String port) { LOG.info("redis-uri" + "redis://"+host+":"+port); return RedisClient.create("redis://"+host+":"+port); } /** * Returns the Redis connection using the Lettuce-Redis-Client * * @return RedisClient */…

VIEW QUESTION

Reactively write to redis in `REDISJSON` format

I am using ReactiveRedisOperations with the driver of lettuce to write to Redis. @Autowired ReactiveRedisOperations<String, Foo> redisOperation; public Mono<Boolean> save(Foo foo) { redisOperation.map(operation -> operation .opsForValue() .set(foo.getId(), foo); return Mono.just(true); } The serialization is defined as private <T> ReactiveRedisOperations<String, T>…

VIEW QUESTION

Redis – Lettuce reactive connection not established

I'm trying to established reactive connection via lettuce, connection @Bean public LettuceConnectionFactory redisConnectionFactory() { return new LettuceConnectionFactory(); } Reactive Redis Template @Bean public ReactiveRedisTemplate<String, Object> reactiveRedisTemplate(ReactiveRedisConnectionFactory connectionFactory) { KryoSerializer<String> kryoSerializer = new KryoSerializer<>(); RedisSerializationContext<String, Object> serializationContext = RedisSerializationContext.<String, Object>newSerializationContext(new StringRedisSerializer())…

VIEW QUESTION

NOAUTH Authentication required spring-boot-data-redis+Realease Lettuce+Redis sentinel

when I restart redis cause java.util.concurrent.ExecutionException: io.lettuce.core.RedisCommandExecutionException: NOAUTH Authentication required. Why is this a problem use version like this @Configuration public class RedisConfig { @Autowired private RedisProperties redisProperties; @Bean(destroyMethod = "close") public StatefulRedisConnection<String, Object> StatefulRedisConnection() { RedisURI redisUri = RedisURI.builder().withPassword(redisProperties.getPassword())…

VIEW QUESTION
Back To Top
Search