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
0
votes
1 answer

Migrate data from a Redis cluster to an other with Redisson

I want to migrate data from an old Redis cluster to a new one programmatically, so I did this : legacyRedisClient.getKeys() .getKeys() .forEach(key -> { LOGGER.info("Redis Migration : Migrating key…
BnJ
  • 1,024
  • 6
  • 18
  • 37
0
votes
1 answer

Why does Netty/Redisson DNS Resolver add a bracket to host name?

I'm trying to connect to Redis on AWS via Redisson, and I'm getting the following error: Caused by: io.netty.resolver.dns.DnsResolveContext$SearchDomainUnknownHostException: Search domain query failed. Original hostname:…
codefinger
  • 10,088
  • 7
  • 39
  • 51
0
votes
1 answer

After RedissonClient.getSet("my-set").size() returns a number, why does the set appear to be empty until next run?

I have a set of strings stored in Redis via Redisson. When I use Redisson to get the set, if I call size() on the set (which returns a positive integer that indicates its size, and thus indicating that there are items in the set), and then…
Steve Storck
  • 793
  • 6
  • 25
0
votes
1 answer

How to Fix 'java.lang.ClassCastException: org.redisson.RedissonReference cannot be cast to org.redisson.api.RLock'

I am using RMap to store RLock. When I am trying to get(key) from this map, it is returning me an instance of RedissonReference instead of RLock. I am not able to cast it to RLock. I am using the below code: RMap locks =…
0
votes
1 answer

org.redisson.client.RedisNodeNotFoundException: Node: NodeSource hasn't been discovered yet

I am new to Redisson and I was trying to integrate the redisson + spring boot for distributed locks with the help of Redis cache. I am getting below error: org.redisson.client.RedisNodeNotFoundException: Node: NodeSource [slot=14577,…
0
votes
2 answers

Circuit-break L2 cache in Hibernate in case of redis connection issues

I am using redisson-hibernate as Hibernate 2nd level Cache provider. If redis server becomes unavailable, while the application is running, the whole application goes down. I am trying to find a way to circuit-break the L2 cache in such a…
Aayush
  • 83
  • 1
  • 5
0
votes
0 answers

Redisson Connection Listener not getting invoked in version 3.7.0

I am trying to setup a connection listener for my redisson client. It is not getting invoked on both connect/disconnect. Tried the code mentioned on the redisson github which is as per below: public void…
coder123
  • 1
  • 1
0
votes
1 answer

Unable to import RClusteredMap in java program

I have added the below maven dependency into my project, even then I am not able to resolve RClusteredMap in my code. org.redisson redisson 3.11.1 Getting…
vickey123
  • 13
  • 5
0
votes
1 answer

Why RMap interface not have a removeAll method? and what's the most convenient way to do batch delete?

I see RMap (https://static.javadoc.io/org.redisson/redisson/3.5.6/org/redisson/api/RMap.html) has putAll, getAll methods, why not have a removeAll methods? And what's the most convenient way to batch delete data from a RMap?
Mobility
  • 3,117
  • 18
  • 31
0
votes
2 answers

redissonClient.poll() only returning the first 8 characters of String type value

Currently using reddison, creating a redissonClient and trying to poll data from redis server. I can see the data in the redis db if I check via redis-cli but when I look at the string value in my java application it is always the first 8 characters…
Damisco
  • 85
  • 7
0
votes
1 answer

Does local cache update evict from all app nodes when using Redisson as Hibernate Level 2 cache

We have multiple nodes with SpringBoot app using Hibernate with Ehcache (configured to talk to other nodes whose IPs we hardcode at startup). We are moving to cloud model with autoscaling so won't have IPs upfront to be fed to Ehcache. We are…
gaurav
  • 3
  • 5
0
votes
0 answers

Nested RMap in Redission

I have used Redission client libraries to create an RMap. When I am fetching the data Redis does 2 commands to fetch the data which is what I want to reduce. Here is my Sample Code: RMap>> map =…
0
votes
1 answer

Redisson Server Interaction

I am using Redisson for my Java Application. In their documentation it says redisson creates Objects on any of the redis nodes. What does this mean? For eg: If I do RSet l_campaign_users_set = redissonClient.getSet("set_key"); It returns a…
Harshit Gupta
  • 81
  • 1
  • 1
  • 7
0
votes
1 answer

Do all (not including partioned) Redisson features work regardless of clustering mode?

Hi looking at the docs and apart where it's obviously stated that a feature is partitioned, does for example a regular Redisson map or AtomicLong work regardless of the Redis cluster modes?
user432024
  • 4,392
  • 8
  • 49
  • 85
0
votes
2 answers

Redisson local cache use

I have two questions regarding the reddison client: Does redisson support automatic synchronization of local cache with remote redis cache (when remote cache data change or invalidate)? I understand that redisson supports data partitioning only…
rom.we
  • 15
  • 2
  • 6