How to clear Redis cache using Redission when Redis deployed to 2 or more...
In my Spring Boot project, I have one redis container deployed in Docker swarm cluster. I use it as Hibernate 2nd level cache for the application. I use Redisson client to manually clear the cache...
View ArticleGetting exception NoClassDefFoundError when connecting to Redis with lettuce...
I'm new to java. Trying to connect to Redis with Lettuce.Environment: openjdk - 15.0.1, Lettuce-core-6.0.1. RELEASE, Redis instance launched on RedisLabs (free tier), Dependency management as java...
View Articleproblem when making multiple connections in redis with java
I am new to using redis and I have the following problem.I have a schedule which runs every 30 seconds. Which calls a job to make 3 connections to redis, these connections are not asynchronous. On the...
View ArticleError invoking scheduled task Error instantiating bean of type...
I have the following problem when running this schedule.@Singletonpublic class TaskScheduler { private static final Logger LOG = LoggerFactory.getLogger(TaskScheduler.class); @Inject private...
View ArticleRedis expire caching not clear anything
I set to expire for 'editorial' key one min and caching not deleted from Redis database@Primary@Bean(name = "redisTemplate")public RedisTemplate<String, Object> redisTemplate() throws Exception {...
View ArticleRedis lua script doesn't respect automicity in some case
I'm trying to have a implement a simple producer-consumer using Java and Redis.The flow is this: the producer pushes items into Redis. The consumer reads the items from Redis. In order to make the...
View ArticleSpring Boot 1.5.3 Redis Sentinel
I have an application using Spring Boot 1.5.3. We have redis already configured but we now need to configure sentinel for it. In other apps where spring boot version is higher, we have been able to do...
View ArticleLettuce RedisCodec For Numbers
Using Lettuce 5 as a Redis client for the first time, I'm finding it rather confusing to simply create a RedisCommands<String, Long> for getting/setting Redis values as a Long.It's a little...
View ArticleHow to force stop/kill Spring Redis embedded server programmatically
I am using Redis embedded server for my integrations tests and I noticed that using the RedisServer.stop() method is not really stoping the mock server. Any idea how to force kill it in my test...
View ArticleRead data saved by spark redis using Java
I using spark-redis to save Dataset to Redis.Then I read this data by using Spring data redis:This object I save to...
View ArticleDistributed locking between Java and Nodejs application using Redis
In my current project I have two deal with two processes one written in Java another in NodeJs.Both the application does some computation and stores some data in Redis, but for some consistency reason...
View ArticleLettuce retreival very slow
I need to cache ArrayList as value for certain keys. For this I am using Lettuce client in Spring. But HashForValues is giveing very slow results while retrieving. I also need to update values...
View ArticleReconnect using retryWhen with two different delay
I want to have two types of retry connection with different delay (I use Redis running on Kubernetes and jedis clinet).It is possible to do it like this, and use retryWhen two times in the same block?...
View ArticleRedis connection lost on Vert.x 3.9.4
After upgrading the vertx-redis-client to version 3.9.4 according to Vert.x documentationThe connection code was needed to be updated to conform the newer version.The code based on the example from the...
View ArticleBlockHound detects blocking call for ReactiveRedisTemplate when using...
I'm trying to create a non-blocking api using reactive spring boot which can store and retrieve a simple message from redis cluster. A very simple application. I'm using...
View ArticleJedis transaction.execGetResponse() giving null when inserting with hset
I am trying to insert hash map values to redis. When executing transaction using execGetResponse() getting below error. This method internally going through readByte() which results MINUS_BYTE leading...
View Articlehow to use multiple keys in Redis with Jedis? Secondary index
Does redis provide support for secondary index on string data type?I would like to know how i can store the data in redis along with seconday key.Example let say i want to store the entity with key...
View ArticleCannot retrieve initial cluster partitions from initial URIs [RedisURI...
I am working on Lettuce cluster Java client. It is set up inside a bolt topology (Apache Strom). spout is reading data from kafka and passing it to bolt. However, when I am starting my topology, I am...
View ArticleJedisPool Connection Refused Spring Boot
I have a small spring boot application that I am trying to integrate with Redis using Jedis client.I set up the Jedis pool to point towards a Redis docker container running locally. @Beanpublic...
View ArticleCamel Redis Automatically Prepends String to Key
I'm using the Redis component in my Camel application. One issue is that it automatically prepends strings to keys. For example, let's say I run the following in my Camel app:...
View Article