skip to Main Content

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
Back To Top
Search