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
Questions tagged [redisson]
370 questions
1
vote
0 answers
Redisson eviction on set/map
I don't understand how eviction work on set with Redisson.
Thanks to the wiki, i can see there is an org.redisson.EvictionScheduler. This worker is supposed to schedule execution to evict old keys in Redis. This method is used to apply TTL on…

Rexave
- 367
- 1
- 3
- 15
1
vote
0 answers
Slow undeploy of web app on Glassfish with redisson
I have problem on undeploy of a web app which uses redisson, I'm running a java web app on Glassfish 4.1.2 (build 1), and when I try to gracefully undeploy the app I get the ERROR :
[2017-11-04T14:18:42.995+0100] [glassfish 5.0] [SEVERE] []…

simonC
- 4,101
- 10
- 50
- 78
1
vote
1 answer
How to get ttl along with the value for a key in redis/redisson
I am storing a Key and value in Redis using redisson java client .
Example as below
RMapCache mapCache = redisson.getMapCache("test");
// with ttl = 10 seconds
Integer prevValue = mapCache.put("1", 10, 10,…

Saril Sudhakaran
- 1,109
- 9
- 17
1
vote
1 answer
How do an HGETALL using redisson
I'm having difficulties figuring out how to access map keys using the redisson redis library. I want to be able to (with redisson) access keys that are created by a system that is not using redisson. Say I use redis-cli...
sasus:16379> hset user…

stand
- 3,054
- 1
- 24
- 27
1
vote
2 answers
Avoiding duplicate rows via redisson
I do have a table, Foo. I add rows to this table on certain events. The current overall design is such that duplicate messages cannot be avoided. This results in adding of duplicate rows to the table.
I cannot put a unique constraint on the table…

Anil Bhat
- 77
- 9
1
vote
1 answer
Connecting Redis events to Lua Script execution and concurrency issues
I have grouped key value pairs or data structures built using Redisson library. The design is that a change in value of any group of value(s) should be sent as event to subscribing Lua scripts. These scripts then do computations and update another…

Ram
- 325
- 4
- 22
1
vote
0 answers
Redisson best practice config with example
I config Redisson client like below, as part of Singelton , what is the best practice to improve performance by redissson config ?
and what is best way to invalidate object at Redisson map ?
Config config = new…

Wasim Daas
- 21
- 1
- 4
1
vote
1 answer
How to set maximum number of permits for Redisson distributed lock
I have a Java module, that is run with AWS Lambda. This means that multiple instances of the module can be run at the same time.
The module is used to access a certain API and retrieve data from it. The problem is that the API uses a leaky bucket…

Ivan Stoyanov
- 5,412
- 12
- 55
- 71
1
vote
1 answer
Redis client (Redission) stops working if first node is down in the cluster
I have a Master Master redis cluster of 3 (node1,node2,node3). I'm using a Redission client for distributed locking across JVM. Now according to the RedLock algorithm which is implemented by Redission it tries to acquire lock in majority of the…

Sarfaraz Khan
- 2,166
- 2
- 14
- 29
1
vote
1 answer
Can't construct a java object due to "Invalid tag" error
I built a web application that communicates with a Redis cache cluster via Redisson driver.
The Redisson driver loads its configuration from a YAML file.
The configuration contains a couple of attributes that are created using a constructor for…

Nel
- 169
- 1
- 3
- 9
1
vote
1 answer
Is a Singleton pattern a good use case for RedissonClient?
I'm running a long running web service via Jetty/CometD, and I'm using the Redisson library for connecting to redis. I'm using a Singleton pattern for getting my RedissonClient/connection and I am not sure if that is the best way to go.
Class looks…

giantNinja
- 191
- 2
- 9
1
vote
1 answer
Redisson - Queue capacity / documentation
Is there any decent documentation for redisson, or best practice?
I'm using .getBlockingQueue() which allows for offer() and put(), but I have no idea what the capacity of the queue is. I'd like to set it to expand as needed, but without that I…

Joel
- 2,601
- 4
- 33
- 44
1
vote
2 answers
New to Redisson (Redis java client) type io.netty.util.concurrent.Future cannot be resolved
I have started to integrate Redission, redis java client to a sample java app. Now as soon as I extend Redisson, I get a error close to the package definition.
The type io.netty.util.concurrent.Future cannot be resolved. It is indirectly referenced…

Siddharth
- 9,349
- 16
- 86
- 148
0
votes
0 answers
log Redis commands fired by Redisson Java client
Is there any available logger that can be used to show the commands executed by Redisson to Redis?
e.g. like hibernate show sql flag.
Something like when code does redisson.getJsonBucket().set() then the respective redis command JSON.SET is…

Sapan V
- 271
- 1
- 9
0
votes
0 answers
redisson-netty- invoked oom-killer
This is the oomkill log for linux
Aug 16 13:37:15 node-172020002225 kernel: redisson-netty- invoked oom-killer: gfp_mask=0x6000c0(GFP_KERNEL), nodemask=(null), order=0, oom_score_adj=-997
Aug 16 13:37:15 node-172020002225 kernel: …

luochen
- 1