Questions tagged [redisson]

Redisson - distributed Java objects and services (Set, Multimap, SortedSet, Map, List, Queue, BlockingQueue, Deque, BlockingDeque, Semaphore, Lock, AtomicLong, CountDownLatch, Publish / Subscribe, Bloom filter, Remote service, Spring cache, Executor service, Live Object service, Scheduler service) on top of Redis server

370 questions
5
votes
1 answer

Redisson client setnx

I am using Redisson as java redis library whats the corresponding function in redisson for setnx(conditional set a key's value and get result as 1 if value is set). I am using redis in clustered mode (sharded cluster). Thanks
user1846749
  • 2,165
  • 3
  • 23
  • 36
5
votes
2 answers

What is difference between ttl and maxIdletime in Redisson CacheConfig

I tried to refer to documents but still I am not clear between difference between ttl an maxIdleTime in CacheConfig class in Redisson. Can anyone shed some light please?
Jaydeep Patel
  • 2,394
  • 1
  • 21
  • 27
5
votes
2 answers

What is a proper way to connect to AWS Elasticache (Redis cluster) from Java?

I'm new to AWS Elasticache redis, and I got below endpoint. I'm confused in either using Jedis and Redisson, because both provides single connection and cluster connection class. Like in Jedis, for a single connection we can use: Jedis conn = new…
4
votes
1 answer

Redisson client injects weird characters at the beginning of strings

I'm using Redisson client to publish String messages on a topic, but for some reasons, the published messages always contain some weird characters at the beginning: eg: when I publish the string "{"event":"notification"}" at the redis level I end up…
Yonoss
  • 1,242
  • 5
  • 25
  • 41
4
votes
0 answers

liblz4-java*.so files generated in directory other than the one specified by java.io.tmpdir

We are using redisson-3.11.3 in tomcat webapp which has dependency to lz4-java (version 1.4.0) as following: https://github.com/redisson/redisson/blob/redisson-3.11.3/redisson/src/main/java/org/redisson/codec/LZ4Codec.java The tomcat\bin\service.bat…
Hitesh
  • 121
  • 3
  • 14
4
votes
1 answer

How to cache the value of a CompletableFuture in Spring Boot

I am trying to play around with CompletableFuture and Async in Spring Boot. I have a service which basically returns a String object. The method of the service has @Cacheable on it, which makes it serve from the Redis cache if it's available. I…
Auro
  • 1,578
  • 3
  • 31
  • 62
4
votes
2 answers

ExecutorService is in shutdown state in redisson

I am using redisson ExecutorService in kotlin,but an exception occur like this, "java.util.concurrent.RejectedExecutionException: Task rejected. ExecutorService is in shutdown state". class RunnableTask : Runnable ,Serializable{ private val…
Azdy
  • 170
  • 9
4
votes
1 answer

Redisson Cache Map does not evict if process is terminated

I am using Redisson's RMapCache to handle some distributed collections in my application. The keys in these collections, should expire after some time, so when adding keys I set the TTL: RMapCache cacheMap =…
4
votes
0 answers

Debugging Redisson Subscribe Timeouts

I am using Redisson 3.8.2 to connect to a replicated AWS elasticache, after a while of operation my client frequently gets timeout exceptions trying to subscribe to topics. I've checked the load on AWS and the load on my client, AWS is barely above…
Draconas
  • 185
  • 1
  • 8
4
votes
3 answers

Make cluster of netty-socketio server

I am using This for socketio setup. I have 2 different socketio server(let say server1 and server2) running in cluster with using of RedissonStoreFactory My issue is, If any client connects with server1, then server2 has no information if connected…
Nitin
  • 2,701
  • 2
  • 30
  • 60
4
votes
2 answers

Using redisson how to check if a given key is present in redis

I have a set of keys and i want to check if any of those are present in my redis db. How can i do so using redisson library ?
priyankatanvani
  • 173
  • 1
  • 12
3
votes
2 answers

Redisson client ; RedisTimeoutException issue

I am using Google cloud managed redis cluster(v5) via redisson(3.12.5) Following are my SingleServer configurations in yaml file singleServerConfig: idleConnectionTimeout: 10000 connectTimeout: 10000 timeout: 3000 retryAttempts: 3 …
M.Ahsen Taqi
  • 965
  • 11
  • 35
3
votes
1 answer

Retrieve existing key-value pair present in Redis using Redisson

I want to fetch existing key value pair from redis using redisson. The issue is that I did not enter that key value pair through redisson, and I am not able to find any function from documentation to fetch existing key and value present as a string.
Sumanto
  • 33
  • 5
3
votes
0 answers

How can I decode FST encoded redis keys in python script?

I have a Java Spring application that uses Redisson client to store some data in redis in a hash. The stored keys are strings (e.g. "key1") and the values are java objects. The codec used is the default, so FSTCodec. What I want to do is use a…
Arno
  • 61
  • 3
3
votes
1 answer

Does a redisson retry attempt invoke the load balancer again?

Given one master node and multiple replica nodes with Sentinels enabled, Redisson configured to read from replica nodes only, and round robin load balancer and retries enabled. In case of a Redisson retry attempt, does it invoke the load balancer…
1
2
3
24 25