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
2
votes
1 answer
Redis/Redisson LocalCachedMap - How does TTL/Eviction work?
I am trying to implement an RLocalCachedMap in my app. While experimenting I was creating a LocalCachedMap and was setting an evictionPolicy and TTL in the LocalCachedMapOptions. I was expecting that any entry added to the map would expire after…

Garct
- 31
- 3
2
votes
1 answer
Is there a way to make eclipselink/JPA use redis for saving and retrieving peristence-unit level (L2) cache?
I'm setting up a cluster environment and I want my JPA's second level cache to be replicated throughout the cluster's nodes. I'm using eclipselink as JPA provider and redis for cache management.

Bharat Gadde
- 173
- 1
- 10
2
votes
0 answers
Kubernetes Java Exec not giving any output for an input
Below is my code, where I am trying to provide input to the Process OutputStream via Redis topic from another application using Redisson Library and I am not able to see any output getting printed on the console.
Is it because the messages from…

ghost
- 425
- 4
- 17
2
votes
1 answer
What are the guarantees provided for various lock implementations in Redisson?
Redisson has several lock implementations ( RLock, RedissonMultiLock, RedissonRedLock), but what guarantees are provided in terms of safety and liveness for each of the lock types is not clear.
Referring to this - https://redis.io/topics/distlock I…

user1571307
- 335
- 1
- 2
- 12
2
votes
1 answer
what's the usage for trySet method in redisson rbucket
I'm learning Redisson now, I have an example as below:
public class TestRedisson {
public static void main(String[] args) {
Config config = new Config();
config.useSingleServer().setAddress("//localhost:6379");
…

gesanri
- 237
- 1
- 3
- 10
2
votes
1 answer
Redisson: Closing client in finalize method
I'm writing an adapter for redission client to use in our application, I'm not sure if it is a good design to close the client in the finalize block. Below is the code. Please let me know
private static final RedissonClient client;
static {
…

BeingVikram
- 33
- 2
- 5
2
votes
1 answer
Redisson (through JCache API) deserialising only to String
I have a Redisson client to store a pair String, LocalDateTime. It's configured to be used through the JCache API (JSR-107).
The storage is done OK, converting with Jackson to values like 2018-01-23T11:59:34.997834 but for retrieval is not using any…

Pedro R.
- 142
- 1
- 11
2
votes
1 answer
redisson connecting to remote cluster
I have created a redis cluster that on it's own is working but I can't connect my client to it.
I am using redisson to connect to it, with the following code
Config config = new…

munHunger
- 2,572
- 5
- 34
- 63
2
votes
1 answer
How do I configure Redisson to read from Elasticache slave nodes
I'm using Redisson ( redisson-all-3.5.5.jar )to connect to AWS Elasticache running in Cluster mode disabled. The cluster has 1 primary and 2 replica nodes. The application uses Redisson's Spring Cache abstraction support.
I have configured Redisson…

shunya
- 31
- 1
- 4
2
votes
1 answer
Tomcat non-sticky sessions with redisson
Trying to setup a tomcat cluster with non-sticky sessions using redis.
Trying to use:
https://github.com/redisson/redisson/wiki/14.-Integration%20with%20frameworks#145-spring-session
The 2 jar files are added. Using Tomcat 7.
context.xml:
…

Matt
- 7,049
- 7
- 50
- 77
2
votes
1 answer
How Redis commands are internally implemented by Redisson?
I was exploring redisson and decided to use for the ease of its simplicity when compared to Jedis, and few other good reviews i found over internet.
The environment on which i will be using redisson is Storm topologies.
It's not a good idea to…

pavan kumar reddy
- 183
- 1
- 2
- 9
2
votes
0 answers
Pipeline using redisson
I want to implement pipeline using redisson in my application.For that i have imported redisson 3.2.2 jar . And i have tried the following code below.
RBatch batch = redisson.createBatch();
RMap map = batch.getMap("map");
Future>…

LPatil
- 233
- 3
- 15
2
votes
2 answers
How to use Redisson to upload byte array in Redis Cluster?
I haven't found an explanation about how to upload pure array of bytes. Redisson has a RBitSet but it manages an array of bits not bytes. How to store a byte array by using Redisson?
Here is my configuration:
Config config = new…

Oleksandr
- 3,574
- 8
- 41
- 78
1
vote
1 answer
How to listen for new keys using Redisson
I need to listen to a keyspace for new, removed and updated values. I can see how the last two are achieved, following Redisson's object oriented approach.
Can someone clue me into how I would do the equivalent of this, using Redisson?
CONFIG SET…

Martin Cowie
- 2,788
- 7
- 38
- 74
1
vote
0 answers
Java Redisson Client Redis Exceptions : org.redisson.client.RedisTimeoutException
I'm setting up a Redis cache layer using AWS Elasticache Redis version 7.0.7
I'm usign Java Redisson client version 3.16.0 and java version 1.8
However one of the requirement is to setup a fallback mechanism to fallback to the downstream service or…

Osama Jetawe
- 2,697
- 6
- 24
- 40