How to implement transaction in Spring Data Redis in a clean way?
I am following RetwisJ tutorial available here. In this I don't think Redis transactions are implemented. For example, in the following function, if some exception occurs in between, the data will be...
View ArticleRedis Cache Memory
We are using Redis to cache our objects.Earlier we were using a complex Class object and were putting it into Redis.@CachedEntity public class PutInCache {private String Id;private String subId;private...
View ArticleRedis lock for specific key
I am using Redis for DB storage and 10 java microservices will be using it simultaneously.For 1 of the key in Redis will be used by all 10 services. Is there any way to implement such that if 1 of the...
View ArticleRqueue Completed Jobs
I am facing an issue when trying to enqueue a huge amount of messages with rqueue. My concern is that even though all jobs are processed successfuly, they are not discarded from redis (I suppose they...
View ArticleHow to config JedisPoolConfig with redis.clients.jedis.UnifiedJedis
I have seen follwing example. final JedisPoolConfig poolConfig = buildPoolConfig();JedisPool jedisPool = new JedisPool(poolConfig, "localhost");private JedisPoolConfig buildPoolConfig() { final...
View ArticlePackage org.apache.commons.pool2.impl does not exist
when i use this maven project,mvn install .[ERROR] hintPackage org.apache.commons.pool2.impl does not existerrorpom.xml about...
View Articlehow to acknownlege redis stream when using spring data redis
when I using this code to acknowlege redis(v6.2.5) stream items in java 11 spring boot project: @Override public void onMessage(MapRecord<String, String, String> message) { try {...
View ArticleFailed to add object to RedissonSet
I am using redis 6.0.5 and redisson client 3.14.9My service on prod fails to add object to RedissonSet.my code looks like this:redissonClient.getSet(setName).add(newValue)The add API returns false...
View ArticleRedis List, pop without removing
I'm using RedisTemplate(from Spring) in my Java app. I need to do pop from a list of elements correspondenting for values, but without removing it. Any suggestions?
View ArticleRedis TTL is always -1 and can't be configured in a Spring Boot application
I can't configure a TTL for the bucket4j configuration. It is always -1. Has this soemething to do with the weird key serialization, see screenshot? TTL configuration does work with other but not with...
View ArticleCapture all update / set event in redisson
I'm making a library for a project.I want when i change value of a key in redis update the same key by the new value in my databaseso i need to listen all transactions, to make it globaly and not add...
View Articleclass file for redis.clients.jedis.JedisShardInfo not found
when I upgrade the jedis to version 4.2.3 in gradle.build: api "redis.clients:jedis:4.2.3"show...
View ArticleReactive Redis:Spring Boot Application Start Fails, If Redis is Unavailable
We are using Reactive Redis to cache web-client response.If Redis server is up and running application works fine.But App start up is failing ,if we stop redis. Expected behavior is app should still go...
View ArticleSpringboot JWT Auth with Redis
I have an application that was working with JWT auth (without Redis)Actually I'm implementing Redis but I'm having some errors that I don't understand..We I sign in, the jwt token is responded ( but...
View Articlewhy did not support PendingMessagesSummary after upgrade spring data redis to...
Today I upgrade the spring data redis to 2.7.2 of my project, but the app logs still shows:[00:00:00:004] [ERROR] -...
View ArticleHow to implement Redis Multi-Exec by using Spring-data-Redis
All Spring Configuration is written properly. Non-Multi-Exec Redis operations work perfectly.@Autowired@Qualifier("stringRedisTemplate")StringRedisTemplate template;void test(){ template.multi();...
View ArticleRedis CacheManager ttl per key
I am trying to keep some key values in redis cache. but the thing is the ttl is set for the cache names provided in the setting. I want to set a ttl for every key value kept in redis cache. I mean I...
View ArticleSprin boot redis upgrade to 2.4.13 lettuce throw exception connection timeout
Dears,After I upgrade my spring boot from version 2.3.12.RELEASE to version 2.4.13, I have exception in calling redis (connection timeout exception)However the older version that using lettuce...
View ArticleCan't reference import org.springframework.data.redis even though I have...
I'm new to IntelliJ/Kotlin; in my .kts file:plugins { id("java") id("io.spring.dependency-management") version "1.0.12.RELEASE" id("org.springframework.boot") version "2.7.0"}group =...
View ArticleAutomatically reconnect Storm Topology to Redis Cluster on Redis restart
I have created a Storm topology which connects to Redis Cluster using Jedis library. Storm component always expects that Redis is up and running and only then it connects to Redis and subscribes the...
View Article