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
2
votes
2 answers

JsonJackson not adding @class

I am using kotlin with redisson and jsonjackson as the serializer. Previously when I used jackson in java, it would automatically add a '@class' tag to the json so when I came to deserialize it, it would work fine and redisson would know what class…
2
votes
1 answer

Is the number of connections used by redisson sum of subscriptionConnectionPoolSize and connectionPoolSize?

I want to understand how to calculate the total number of connections used by redisson. My understanding is it is the sum subscriptionConnectionPoolSize and connectionPoolSize.
four
  • 65
  • 5
2
votes
1 answer

Redisson getAtomicLong - what happens if key does not exist?

I'm building a cache implementation in Java using Redisson. I want to use it to cache a numerical value. So I'm using getAtomicLong() like so: RAtomicLong userNumber = redissonClient.getAtomicLong("my-key"); long value = userNumber.get(); However,…
Tyler M.
  • 115
  • 1
  • 1
  • 11
2
votes
1 answer

Redisson Tomcat Session Management

I am trying to store tomcat session in redis server using Redisson . I have followed the steps mentioned in this link ( Tomcat 8 Session Replication with Redis ). I am using a redisson.conf file instead of redisson.yaml singleServerConfig: …
Bala
  • 21
  • 3
2
votes
1 answer

Invalidate cache (2LD Cache Hibernate) if add or remove column in entity. (reddison)

When I add or remove a column from an entity and the "old" entity was already in the cache and I want to load the "new" entity now I get an error. I use Redisson as 2LD Cache in Hibernate. "Old" Entity: public class TestEntity implements…
2
votes
1 answer

Redis - Option for storing multiple objects

What is best practice in redis when we need to store multiple objects of same category? Currently I store the whole object as json string. For ex: Books. { title:..., author:... } Option 1: set book:1 book1 set book:2 book2 set book:3…
RamPrakash
  • 2,218
  • 3
  • 25
  • 54
2
votes
0 answers

Producer/Consumer implementation with Redisson

I have a goal to implement Producer/Consumer pattern using Redisson. Expected behavior is to have multiple producers which emit message to multiple topics and multiple consumers which listen to messages and process them AND each message should be…
Yurii Melnychuk
  • 858
  • 1
  • 5
  • 11
2
votes
0 answers

Reuse RedissonClient bean for hibernate second level cache RegionFactory

I have a spring boot(2.3.0.RELEASE) application which uses hibernate(5.4.15.Final) and spring-session-data-redis. Sessions are persisted to redis using redisson. The Redisson client is created programmatically and is exposed as a Bean. Is there a…
2
votes
1 answer

Redisson Multiget - Getting multiple key values in single call form Redisson

I have a redis cache where each key is of type list and from redisson i want to make a map of each list key and their size... Below code is working fine but I want to make single call to redis cache. Iterable keys =…
Satish Bhuria
  • 81
  • 2
  • 13
2
votes
1 answer

UnknownHostException: failed to resolve 'my-redis-host' after 6 queries after switching from Jedis to Redisson

After switching from Jedis to Redisson I have an issue which looks…
gstackoverflow
  • 36,709
  • 117
  • 359
  • 710
2
votes
0 answers

Redisson not connecting to redis cluster

Im trying to configure my java application to connect to a redis cluster using Redisson. Following is my redisson client config: Config config = new Config(); config.useClusterServers() .addNodeAddress("redis://IP:6379",…
glitch99
  • 264
  • 2
  • 7
2
votes
1 answer

how redisson serialize long

I use redisson to store Long values: RSet set = client.getSet("myset"); set.add(Long.valueOf(n)); But I get an unreadable value: > SMEMBERS myset 1) "\t\x84\xe2\x02" How can I retrieve this value without redisson?
auntyellow
  • 2,423
  • 2
  • 20
  • 47
2
votes
0 answers

Redis creating new connections and dropping older connection every second

We have a Redis cluster(running in Sentinel mode) with 3 nodes and we are using Redisson (version 3.10.7) to interact with Redis. We are facing an issue wherein the client application is not able to connect to the cluster. Continuously older…
2
votes
0 answers

Redisson with PCF Redis On-Demand Service ERR unknown command `EVAL` exception

Have some code written with redisson in mine spring-boot application, which works with my local redis server version 5+. But once apllication pushed to PCF and trying to use redisson lock - I do get next error: org.redisson.client.RedisException:…
Oleg Kuts
  • 769
  • 1
  • 13
  • 26
2
votes
1 answer

Setting jdk.tls.client.protocols system property to TLSv1.2 not working in netty 4.1.48

We are using the Redisson client, which uses netty to connect to a Redis server. With netty 4.1.42.Final, everything worked fine. But after upgrading to netty 4.1.48.Final, TLSv1 ClientHello is sent and therefore not able to connect to the server.…
anu talasu
  • 31
  • 1
  • 1
  • 5