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
0 answers

Issue with getting the key using Spring Boot with Redis Data

I am trying to save an access token within Redis. I have created the RedisConfig, RedisRepository which extends CrudRepository. In the call where i get the access token i am using the repository to save it in Redis which is working…
Tarun Pande
  • 371
  • 1
  • 6
  • 18
1
vote
2 answers

NotSerializableException with redisson-spring-boot-starter

I'm using redisson-spring-boot-starter 3.13.2 and Kotlin for cache but I get the following exception: java.lang.IllegalArgumentException: java.io.NotSerializableException: com.service.message.State at…
zhaider
  • 595
  • 2
  • 9
  • 26
1
vote
2 answers

how to get the current time by use redisson client

if i have several servers, maybe servers's current system time are different. how can i all use redisson to get current time? I've read the RedissonClient api, but I haven't found the way to get this yet
silentfish
  • 11
  • 1
1
vote
2 answers

How does the distributed executor service in Redisson work with regards to scoping / closuring?

If I push a Runnable to a redisson distributed executor service, what rules am I required to oblige by? Surely , I can not have free reign, I do not see how that is possible, yet, it is not mention in the docs at all, nor are any rules apparently…
mjs
  • 21,431
  • 31
  • 118
  • 200
1
vote
0 answers

Redis Redisson - Strategies for workers

I am new to redis, and redisson but kind of up to date with what is available now. Mostly from here: https://github.com/redisson/redisson/wiki/9.-distributed-services#91-remote-service The case here involves a worker, on only one server out of say…
mjs
  • 21,431
  • 31
  • 118
  • 200
1
vote
0 answers

Redisson client serialization issue

I need to put my spring data Page object inside redis via redisson client. So, for this case i have special mapper dto: public class RestResponsePage extends PageImpl { private static final long serialVersionUID = 3248189030448292002L; …
SlandShow
  • 443
  • 3
  • 13
1
vote
1 answer

Distributed exclusive task with Redisson?

I'm using Redisson distributed executor service. A task class A is designed to process a given queue identified by its queue ID. There are multiple such queues. I need to ensure for any time in the cluster, there are no more than one instance of…
Nan Wang
  • 65
  • 6
1
vote
1 answer

WRONGTYPE Operation with Redisson Live Objects

I've upgraded my Redisson library to 3.13.2(from 3.11.1) and since then I keep getting WRONGTYPE Operation against a key holding the wrong kind of value as soon as I perform liveObjectService.persist(reporterObject). I have the following…
Ben Yaakobi
  • 1,620
  • 8
  • 22
1
vote
0 answers

RedissonClient using Runnable Task: NoSuchBeanDefinitionException: No qualifying bean of type

Below is how I load my redisnode( using redis server) with the configuration as stated on https://github.com/redisson/redisson/wiki/9.-distributed-services#944-distributed-scheduled-executor-service-scheduling-a-task-with-spring-beans where it says…
Shuja Ahmed
  • 752
  • 5
  • 17
1
vote
0 answers

Disturbuted job running on the number of servers each time by redisson

I have a scheduled job( jb1 ) on 10 servers. I want some number of servers to run it each time, for example only 3 servers. I am interested in using redisson to handle it in kotlin. It’s important, if a jb1 server failed, should one of the other…
Azdy
  • 170
  • 9
1
vote
2 answers

How can I use Redisson Write-through caching strategy with an auto-generated PK

I am planning to use Redis with Redisson as a caching layer between my Java app and a PostgreSQL DB. I have a table called Nodes looking like this: CREATE TABLE nodes ( node_id bigint GENERATED BY DEFAULT AS IDENTITY(START WITH 1 INCREMENT BY…
ioan tinca
  • 31
  • 2
1
vote
2 answers

is there option provided by redis to do partial updates to cache objects

I am storing data in redis using JCA(java caching api) where key is String and value is Object which is JSON string. I have a requirement to perform partial update to cache value instead of retrieving cache value using key and then modify attribute…
1
vote
2 answers

How to fetch cached value using redisson client

I wanted to fetch cached(@Cachable) value using redisson client but it return strange data if i use any codec in redisson client (getBucket("fruit::1",StringCodec.INSTANCE)) and it throws error unless i use codec. i have used below code for caching…
user951215
  • 91
  • 1
  • 8
1
vote
0 answers

Disable redis cache using Spring, redisson 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 shown below. "No CacheResolver…
Julie
  • 179
  • 2
  • 13
1
vote
1 answer

Is Redisson getLock() Safe for Distributed Lock Usage?

Is Redisson's getLock() method good for a distributed use case, and how does it compare to getRedLock()? Redisson (3.11.x) has several methods to instantiate locks: RedissonClient.getLock() RedissonClient.getRedLock() others like…
JJ Zabkar
  • 3,792
  • 7
  • 45
  • 65