Quantcast
Channel: Active questions tagged redis+java - Stack Overflow
Browsing all 2203 articles
Browse latest View live
↧

NoSuchMethodError:...

I am upgrading the spring boot from 1.5.3 version to 2.1.6 release. I have added below...

View Article


How 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 Article


Retry 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 Article

BETWEEN (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 Article

Redis/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 Article

Where 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 Article

WRONGTYPE 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 Article


Published 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 Article


Not 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 Article

Memory 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 Article

Redis 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 Article

Spring 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 Article


Image may be NSFW.
Clik here to view.

Java 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 Article

Creating 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 Article


Is 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 Article

Springboot2 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 Article


Spring 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 Article

redis 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 Article

Redis - 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
Browsing all 2203 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>