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
1
vote
1 answer

Redisson: Is there a way to use different codec for classes in specific packages instead of the globally configured one?

In my current project, Redisson is used for caching many different classes using the JsonJacksonCodec. This works as intended but I want to have classes only in a certain package serialized using MsgPack instead while leaving the rest serialized as…
Michal Habel
  • 47
  • 1
  • 4
1
vote
1 answer

Can RedisTemplate be configured for Redission?

I have configured Redisson for Spring Boot. It works fine using RedissonClient. But is it possible to configure Redisson for RedisTemplate. I searched in the web but not found any solution. @Configuration public class RedissionConfig { @Bean …
shovon
  • 109
  • 1
  • 3
  • 6
1
vote
2 answers

Distributed locks in Microservice architecture

We have an architecture setup where we have the client application running in a server and we would want to have a Micro Service responsible for offering the Distributed Lock/Map/Cache functionality. This Micro service internally uses Redisson , a…
1
vote
3 answers

Problem with Redisson Hibernate 2L cache config in Spring MVC

I am trying to configure Redisson Hibernate 2L cache in Spring MVC project. I had follow tutorials, although most of them is devoted to Spring Boot. I have added dependencies in pom.xml file: org.redisson
gariaable
  • 179
  • 1
  • 3
  • 15
1
vote
1 answer

Is there some kind of lock / semaphore with idle TTL

I have the following case. In order to prevent concurrency resource access we are using RPermitExpirableSemaphore as a lock. From Expirable I would expect that "lock key" in Redis would be deleted after some TTL. But unfortunately it isn't. For…
Andrii Abramov
  • 10,019
  • 9
  • 74
  • 96
1
vote
0 answers

Running into RedisTimeoutException and other exceptions with Redisson and Azure Redis Cache

A lot of timeout exceptions and Can't add slave exceptions Steps to reproduce or test case intermittent Redis version Azure Redis Cache with 5 shards 4.0.14, 3.2.7 Redisson version 3.11.4 Redisson configuration Default clustered config with the…
Emtiaz
  • 141
  • 1
  • 5
1
vote
1 answer

Redisson config setBeanFactory autowiring beans

I have a task class defined here: { @Autowired private CarPainter carpainter; private String color; private Car car; public CarPainterTask(Car car, String color) { this.car = car; this.color = color; …
user7788669
1
vote
2 answers

Is it possible to use Redis as In Process or Local cache?

I would like to know if it is possible to use Redis as local or in process cache in java. I have tried with Redisson (version 3.11.2) but I get an error: MutableConfiguration jcacheConfig = new…
Hossain
  • 31
  • 6
1
vote
1 answer

Connection pooling with Redisson

My application makes a lot of calls to Redis, I dont want to create a client everytime. Is there a way I can create a connection pool and use connections from the pool whenever I need to connect to Redis. Please note that redis is in single server…
Athomas
  • 533
  • 1
  • 6
  • 19
1
vote
1 answer

Hibernate 2nd level Caching using redis for multiple containers

I have configured 2nd level cache for my spring-boot application using redisson-hibernate-53. Here is the redisson.yml file for that, singleServerConfig: address: "redis://127.0.0.1:6379" It seems to be working and required keys are being…
Ashwin Sreekumar
  • 121
  • 1
  • 12
1
vote
1 answer

Does Redission support pipelining to redis cluster

Does Redission support pipelining to redis cluster? RBatch in redission can be used to perform multiple hmset commands?
barath
  • 762
  • 1
  • 8
  • 26
1
vote
1 answer

Why netty throws UnknownHostException even though it received responses from nameservers?

Netty received responses from name servers for a host. Even then netty threw exception java.net.UnknownHostException. Netty requesting DNS: 2019-01-18 03:49:43,754-0600 [toe=01fl3wysf7tfpl] [redisson-netty-1-3] DEBUG - [id: 0xe17fa005] WRITE: [6617:…
Hitesh
  • 121
  • 3
  • 14
1
vote
2 answers

Is there any way to increase DNS cache TTL in netty?

When Netty received responses from name servers for a host, the hostname was resolved successfully. After some time (less than one minute), when no response was received for the same host from nameservers, netty threw…
Hitesh
  • 121
  • 3
  • 14
1
vote
1 answer

Serializable class not found CLASSNAME error is thrown when moving class package(even thought serialVersionUID is stated in class)

I am working with Redis(via redisson) I have a DTO class that I am serializing an deserializing into Redis, the codec I am using is: org.redisson.codec.FstCodec when I move the class to a diffrent namespace despite setting the: serialVersionUID…
Roie Beck
  • 1,113
  • 3
  • 15
  • 30
1
vote
2 answers

ClassNotFoundException: No RObject is found to match class type of org.redisson.RedissonMap with codec type of org.redisson.codec.JsonJacksonCodec

Having problems to solve LiveObject raised exception, I try to reproduce problematic behavior based on Redisson test cases. The minimal code I get to reproduce issue is this test case (mostly inspired from RedissonLiveObjectServiceTest.java): public…
keuluu
  • 79
  • 1
  • 1
  • 7