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

Redisson not storing in Redis?

I am using Redisson for Redis. I have installed Redis on my local system. I've written the following code and ran it: Config config = new Config(); config.useSingleServer() .setAddress("redis://127.0.0.1:6379"); RedissonClient client =…
user2896120
  • 3,180
  • 4
  • 40
  • 100
0
votes
1 answer

Redisson Rollback Operation

I want to know how the Redisson Library Supports the Rollback operation. What I got from the Redisson Github page is Redisson uses locks for write operations and maintains data modification operations list till the commit/rollback operation. But I…
0
votes
1 answer

Listen for changes to an object in a Redisson Object Holder (RBucket)?

The RBucket class offers: addListener(ObjectListener listener) I tried to use this method but as far as I can tell, I could only listen for when an object is deleted (DeletedObjectListener) or expired (ExpiredObjectListener). Is it possible to…
Mike Stoddart
  • 488
  • 7
  • 21
0
votes
0 answers

Why java.lang.VerifyError is thrown when reactor/core/Scannable is called?

I'm investigating the following java.lang.VerifyError: Caused by: java.lang.VerifyError: (class: reactor/core/publisher/FluxCreate$BaseSink, method: scanUnsafe signature: (Lreactor/core/Scannable$Attr;)Ljava/lang/Object;) Illegal type in constant…
barthas
  • 1
  • 1
0
votes
1 answer

Spring Cache+Redis cache doesn't calculate keys based on method/class names

I'm using redisson with a jcache abstraction, simply put I have this: public class MyService{ @Cacheable("cacheA") public String returnSomethingAfterLongTime(String parameter){ //... } @Cacheable("cacheA") …
Phate
  • 6,066
  • 15
  • 73
  • 138
0
votes
1 answer

Disable redis cache using Spring, redission client - no Spring boot

We need to enable/disable caching based on whether there is a redis host configured or not. I added the below 3 bean configs. Is this the right way to disable? I am still seeing cache resolver error after startup - "No CacheResolver specified, and…
Julie
  • 179
  • 2
  • 13
0
votes
1 answer

How to attach a TTL to every entry in Redis Cache in Springboot

Say I have a model Employee which has an expiry component to it. When the first request comes to retrieve the employee details, I want to store it in cache with a TTL based on the expiry of the Employee object (employee.getExpiry()). I am unable to…
Auro
  • 1,578
  • 3
  • 31
  • 62
0
votes
1 answer

Not working Reddison client in Java Lambda(using samLocal and localstack)

I'm not sure what's causing this to not work. Everytime the code hits the initialization of the client, it stop working Is using Redisson not viable in a Lambda setup? Main code for initializing redisson client: public boolean…
gzz
  • 655
  • 5
  • 18
0
votes
1 answer

Does Redisson Hibernate Cache Module share same data in multiple containers?

We want to use the redisson-hibernate project https://github.com/redisson/redisson/tree/master/redisson-hibernate to support redis 2nd level cache. I tested redisson-hibernate module in multiple containers by using same Redis database. We use same…
0
votes
0 answers

Redisson JAR execution: ClassNotFoundException: org.redisson.RedissonReference

Spring Boot v2.1.2 on Java 11 not working when being executed via compiled Jar file complaining on missing class (ClassNotFoundException: org.redisson.RedissonReference). Although everything works when running code directly via Intellij. See below…
Vladi
  • 583
  • 5
  • 13
0
votes
1 answer

Redisson creates an extra key on storing a java POJO

I'm using redisson (3.11.4) with spring boot (2.1.5) to store java objects. My POJO looks like this. @Data @Builder @AllArgsConstructor @NoArgsConstructor @REntity public class ParentRecord { @RId private String id; private String…
afzal
  • 33
  • 4
0
votes
0 answers

Rate limiting with redis

I'm using elasticache redis for rate limit and use Redisson as the client, the related code is: public CompletableFuture> incrementSingleKeys( List keys, List increments, List ttls) { RBatch batch =…
Steve Liu
  • 1
  • 1
0
votes
1 answer

How does this org.redisson.api.RExpirable.expireAt(long timestamp)?

I need to know how boolean org.redisson.api.RExpirable.expireAt(long timestamp) in org.redisson.api.RMap works ? For eg; I create a bucket named ABC and add a key-value pair key1 - value1 . And I invoke the above method. So does this…
cyrilantony
  • 274
  • 3
  • 14
0
votes
1 answer

Is it possible read happens before replication when Redis is in sentinel mode?

I am running Redis in sentinels mode, It has happened many times that I write data in Redis but while reading same key I don't get expected value. I am wondering if it is possible when I write data it is written on Master and while reading it goes…
Akshay Naik
  • 669
  • 1
  • 6
  • 22
0
votes
0 answers

Redisson and Spring Boot to connect to the AWS EC2 Hosting Redis

Hi I have installed Redis on AWS-EC2 instance. I am able to ping the instance from my local machine. I have opened all ports on my EC2 instance so i should be able to connect and ping the Redis Server. I am able to ping the EC2 server using the…
user1643003
  • 255
  • 4
  • 16