Redisson memory leak When I try to create client
When I try to use Redisson to Connect Redis Server, it some time show me that memory leak error. how can I fix that.The reproduce code is in below.Expected behaviorIt should't have memory leak.Actual...
View ArticleUnable to connect to Redis | Spring Boot
I've a redis service on upstash.io but not able to connect to it from my spring boot applicationThis is my redis config@Configurationpublic class RedisConfig { @Bean public LettuceConnectionFactory...
View ArticleRedis-backed semaphore with overflow (force acquire even when limit is reached)
I am looking for a semaphore-like construct with the ability to "force" an acquisition, even when maximum capacity is reached, essentially overflowing the semaphore.I am imagining an interface similar...
View ArticleRedis cache consistency: how do you deal with it?
Redis is quite popular in Java, spring itself provides quite easy abstraction for caching using redis.You just apply an annotation @Cacheable or use programmatic approach cache.get(..).There is also an...
View ArticleHow to clear Redis ClientSideCaching/FrontendCache
I have some wrapper over CacheFrontend to make client-side caching in my app.I have the config class where I create my client-side cache:@Configurationpublic class RedisConfiguration { private final...
View ArticleRedis-backed semaphore with overflow (force acquire even when limit is reached)
I am looking for a semaphore-like construct with the ability to "force" an acquisition, even when maximum capacity is reached, essentially overflowing the semaphore.I am imagining an interface similar...
View ArticleImplement while loop inspring webflux to scroll Elasticsearch index and...
Have developed spring webflux application using java 17 and springboot 3.2,Have implemented an api to scroll the elastic search index with batch size of 200 records and insert to redis, however elastic...
View ArticleRedis-backed semaphore with overflow (force acquire even when limit is reached)
I am looking for a semaphore-like construct with the ability to "force" an acquisition, even when maximum capacity is reached, essentially overflowing the semaphore.I am imagining an interface similar...
View ArticleRedis Lua script fails with "command arguments must be strings or integers"...
I'm trying to implement a document locking mechanism using Redis SET with Lua script for atomicity. I want to store a list of UUIDs as strings in a Redis SET, check which ones already exist, if any is...
View ArticleRedisson cluster client doesn’t recover after node outage...
Environment- Redisson version: 3.11.0- Redis deployment: Redis Cluster (3 master + 3 slave)- Client creation: Redisson.create(config) with useClusterServers()- scanInterval explicitly set to 2000ms in...
View ArticleRedisson - Is it possible to index arrays in Redisson Live Object based on...
I have objects that looks like@REntityclass Product {@RIdString name;@RIndexString[] tags; // ["foo", "bar", ...]...}How can I query all objects having foo as one of the tags using Redisson Live Object...
View ArticleAchieving JMS/AMQP messaging patterns using Redis
This question arises as I came across some mentions (such as this), about using a Messaging software such as ZeroMQ alongwith Redis, but I keep hearing about Redis itself used a messaging-system. So,...
View ArticleSpring Session Redis not replacing Tomcat JSESSIONID (two session cookies)
I am developing a BFF (Backend For Frontend) service using Spring. For authentication, I am using an Identity Provider (Keycloak for local development). I am using the Authorization Code Flow via the...
View ArticleHow do I prefix class names wih a custom string?
In order to implement some kind of namespace, I need to prefix the keys of a Redis JPA repository with a static string within a whole Spring application.I read about the spring.cache.redis.key-prefix...
View ArticleRedisson RMap.getAll() returns incorrectly deserialized objects for large...
I am using Redisson RMap as a cache and fetching data in batches using getAll().Original codeprivate static final int FETCH_LIMIT = 1000;private void getResponseForSubsetOfKeys(Set<Object> keys,...
View ArticleJava Redisson unlock exception
I'm using this common code in my distributed locker service:private <T> T lockAndProcessTask(String lockKey, boolean waitForLockRelease, Supplier<T> task, Supplier<T>...
View ArticleHow to bring up redis cluster using testContainers in java
I'm trying to create a Redis cluster using TestContainers to test my application, which depends on a Redis cluster. Here's what I have tried so far:Code snippet for starting container:Network network =...
View ArticleSpring Boot 3 with Lettuce: How to avoid SENTINEL REPLICAS command when user...
I am setting up a Spring Boot 3 application (using Gradle and Java 17) with Redis Sentinel and the Lettuce client (non-reactive, with RedisTemplate).Our infrastructure team has provided a Redis...
View ArticleUnable to connect to Redis,RedisConnectionException: Unable to connect to...
I'm trying to configure a redis connection within my SpringBoot project.The application starts up without any issues, but when I try to test any Redis operation, specifically when making a call to a...
View ArticleHibernate (5.3.3.Final) + Redisson (3.17.7) in a SBT project isn't evicting...
I am using a java-scala project and have configured the RedissonClient programmatically:public class RedissonConfigurationFactory extends RedissonRegionFactory{private static RedissonClient...
View Article