NoSuchMethodError:...
I am upgrading the spring boot from 1.5.3 version to 2.1.6 release. I have added below...
View ArticleHow to ensure the expiry of a stream data structure in redis is set once only?
I have a function that use lettuce to talk to a redis cluster. In this function, I insert data into a stream data structure.import io.lettuce.core.cluster.SlotHash;...public void addData(Map<String,...
View ArticleRetry options in Redis Stream to read values
I have created a Redis Stream with XADD using AsyncCommands. Redis StreamListener will listen the stream when values adds into the stream. In case listener fails to read stream due to connectivity...
View ArticleBETWEEN (2): [IsBetween, Between] is not supported for Redis query derivation
I'm a beginner at spring data redis and I'm currently using Redis database as part of my application. And I am trying to query for records between two dates.Here is my Repository class.public interface...
View ArticleRedis/Jedis no single point of failure and automated failover
In a simple situation with 3 servers with 1 master and 2 slaves with no sharding. Is there a proven solution with java and Jedis that has no single point of failure and will automatically deal with a...
View Article@RefreshScope preventing Redis Message Listener from subscribing
I have a Spring configuration in place for a Redis Pub/Sub similar to the one below...@Bean@Qualifier("someTopic")public ChannelTopic someTopic() { return new ChannelTopic("someTopic");}@Beanpublic...
View ArticleWhere to install Redis certificate
I have a certificate for Redis. Where do I install this certificate to connect to my Redis server?I've tried to throw it into my java cacerts, but it doesn't work.What is the proper way to do this?
View ArticleWRONGTYPE Operation against a key holding the wrong kind of value
I am looping through an arrayList and using redis rpush function to store strings in redis .However,I am getting the following error: WRONGTYPE Operation against a key holding the wrong kind of value...
View ArticlePublished messages in a reactive Redis topic aren't sent to the client
During the process of implementing GraphQL subscriptions I came up with a poor man's solution to pub/sub with custom topics that looks as follows:// The map is a custom class, just to handle multiple...
View ArticleNot able to connect to slave machine in case of master is down in redis...
I have 1 master(6379), 1 slave(6380), and 3 sentinels(26379, 26380, 26381) running on docker container master and slave are connected and up even sentinels are giving right information about...
View ArticleMemory occupied by individual key in Redis using Jedis?
How do we find memory occupied by individual key in Redis using Jedis?jedis.info("memory") provides only the total memory used by the redis server.
View ArticleRedis Sentinel Connection Issue
I have spring boot application with MYSQL DB and i am caching the data in Redis in server layer with @Cacheable Annotation@Cacheable(value= "employeeCache", key= "#customerId")@Overridepublic Customer...
View ArticleSpring Data Redis Lettuce Connection Issue
I have spring boot application with MYSQL DB and i am caching the data in Redis in server layer with @Cacheable Annotation@Cacheable(value= "employeeCache", key= "#customerId")@Overridepublic Customer...
View ArticleJava Jedis WRONGTYPE Operation against a key holding the wrong kind of value
I am connecting redis server from my machine using java Jedis. I am trying to do sadd which is already provided by Jedis. But I am getting an exception as WRONGTYPE Operation against a key holding the...
View ArticleCreating a Jedis pool generates violation
I'm using a Redis server on a Debian machine. I'm running a BungeeCord network on it. (BungeecordAPI)First of all this is the error I get:[25.05 18:49:17.637] INFO: [Proxy-1] java.lang.LinkageError:...
View ArticleIs it possible to serve stale data from Redis by design?
I have a Java application that is responsible for serving up various (sometimes large) json responses to client applications. At the app layer, it uses Redis (AWS ElastiCache) to cache the json with...
View ArticleSpringboot2 use StringRedisTemplate can't connect to redis cluster in docker
I set up the redis-cluster in docker in aws ec2. They use the docker swarm net. The ip is from 10.0.0.6:6379 to 10.0.0.11:6379 and is mapped to the ec2 static address like (public address:5001 to...
View ArticleSpring Boot Redis store a list of POJOs as values
I am using Redis with Spring boot. I am using String as Key and the value against it as a List of complex POJO. Below is my config:@Configuration@EnableCaching@Slf4jpublic class RedisCacheConfig...
View Articleredis RR solution for scalable java service
i have a multi instance service that works synchroniusly.i want to develop a new async API for this service that will recieve a request, publish it to redis.it will be stored on the redis instance in...
View ArticleRedis - Consider renaming one of the beans or enabling overriding by setting...
I am developing Spring Boot + Spring Data Redis example. In this example, I'm developing the code for the RedisMessageListenerContainer and define the corresponding bean here.Now when I run the...
View Article