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
0
votes
1 answer
Redisson w/ AWS Elasticache
I keep getting this error when I try to configure Redisson.
org.redisson.client.RedisConnectionException: Can't connect to servers!
Caused by: io.netty.channel.ConnectTimeoutException: connection timed out:
Is it not possible to use Elasticache w/…

Ryan G
- 5
- 8
0
votes
1 answer
outofDirectMemory exception with redisson
i'm trying to learn Redis through Redisson. Here is my code to insert into redis using multiple threads.
package redisson
import java.io.File;
import java.util.concurrent.atomic.AtomicInteger;
import org.redisson.Redisson;
import…

Marek
- 245
- 1
- 4
- 15
0
votes
1 answer
Redisson - RMapCache prepends 2 additional bytes to value
I'm using Redisson's RMapCache structure because it supports entries eviction by time to live and by setting maximum size of map. While everything works without problems in Java, I've found out that NodeJS app that uses same Redis instance couldn't…

Volodymyr Masliy
- 413
- 4
- 14
0
votes
1 answer
Redisson - support for SCAN
Is there a way to SCAN the keys iteratively without overloading the Redis cluster if the key size is really huge? Natively Redis supports this.
If the above is possible then can I control how many keys are returned in each round-trip?

Anirudh Jayakumar
- 1,171
- 3
- 15
- 37
0
votes
1 answer
Is there automatic topology discovery support in Redisson Redis client?
The documentation suggests that we create a redisson instance with a specific Redis configuration (clustered, replicated, master-slave etc).
config.useClusterServers() // or
config.useReplicatedServers()
In situations where I only have the…

Anirudh Jayakumar
- 1,171
- 3
- 15
- 37
0
votes
1 answer
How to improve performance over RMapCache in Redisson
When I was working with Redisson in Java, I got a performance issue which I need more advises. Here is the situation:
Need Redis cache to store value(Object) with primary key & secondary key, so I figured that I could use RMapCache in Redisson.
It's…

user8460034
- 31
- 1
- 4
0
votes
2 answers
Redisson Spring - Unexpected exception while processing command
I am using Redisson to store a map in redis.
Spring config:
@Bean(destroyMethod = "shutdown")
public RedissonClient getRedissonClient() {
Config redisCofig = new Config();
redisCofig.useSingleServer().setAddress(redisUrl);
…

Kazi
- 113
- 2
- 13
0
votes
1 answer
Redis - Max Subscriptions/Connections?
I'm designing a Java Spring based real-time notifications system & chat system using Redis & WebSockets(with sockJS and STOMP). Requirement is for each user to subscribe to a unique channel (channel name will be user id). This is because…

user1102532
- 495
- 6
- 16
0
votes
1 answer
Redisson - RSortedSet
I need to preserve the ordering of elements added to a SET in Redis. In order to do that, I am using RSortedSet with a custom comparator.
The problem am facing here is, unlike RSetCache I am not able to expire the elements in this SET.
Is there a…

Bala.vrad
- 53
- 9
0
votes
0 answers
How to fail silently when using Redisson for cache?
I'm using Redisson for caching. Are there any way to make the Redisson fail silently if my Redis instance is offline?
Since I'm using Redis just for caching it will be ok to just ignore some failures for while and just log it.

Felipe Rotilho
- 106
- 1
- 5
0
votes
1 answer
Redis Cache - Access HMSET using Redisson
I have HMSET stored in Redis Cache as below
>hmset [User1] [Key1] [value1] [Key2] [value2]
Now how do I get the key and value Map using User1 key in Redisson ? Also how to get value for specific key and user?
I tried
RMap map =…

user2968937
- 73
- 11
0
votes
2 answers
Redisson Client with Sentinel throws exception
I'm using Redisson with below configuration to connect to Sentinel servers:
Config config = new Config();
config.useSentinelServers().setMasterName("local")
.addSentinelAddress("redis://localhost:26379", "redis://localhost:26380",…

Madhav Maddi
- 1
- 1
- 1
0
votes
2 answers
Redisson.create failing with IllegalArgumentException: hostname can't be null
Trying to connect to Redis (on Docker) using Redisson... simple stuff..
Config config = new Config();
config.useSingleServer().setAddress("redis://192.168.99.100:6379");
RedissonClient redisson = Redisson.create(config); //line 3
But I am getting…

Abhishek
- 1,175
- 1
- 11
- 21
0
votes
1 answer
Java Redisson Integration
I have a scenario, where the datastructure I need to go with is a Map>.
And I want to use Redis to store this data as in-memory cache.
One thing I am interested in is that, making the "key" of the child map, (which in…

Bala.vrad
- 53
- 9
0
votes
2 answers
Is it ok to use ScoredSortedSet from Redisson lib to get actual item rank within environment with extensive writes?
I want to use Redis with java Redisson library. I have a task to store items in a sorted order, based on some item's field. There are three main constraints:
Sorting field of items could be updated quite often. There could be up to 25k updates per…

Kivan
- 1,712
- 1
- 14
- 30