Shedlock with Spring and Redis
I'm using Shedlock with Spring Boot and Redis as Lock Provider.Everything seems to work fine. But when I manually go to the Redis during the execution of the task I see no specific KEY for the lock.On...
View ArticleQuarkus and Redis
Im using REDIS to cache in Quarkus Application but sometimes I got an error saying that "Client is closed" when I try to access key/values from it.WARN [io.net.uti.con.AbstractEventExecutor]...
View ArticleErrors connecting to Heroku Redis with Jedis from Clojure
In the Heroku docs, they have listed some example code for constructing a JedisPool instance from Java.https://devcenter.heroku.com/articles/heroku-redis#connecting-in-javapublic static JedisPool...
View ArticleSpring boot Integration test with Embedded Redis Server
I have an integration test in my spring boot application as below:import org.springframework.data.redis.connection.RedisStandaloneConfigurationimport...
View ArticleJava job scheduler based on Redis?
I am looking to replace Quartz as a job scheduler in our project. We already use Redis with cluster support as a distributed cache layer and we thought that maybe we could use Redis for job scheduling...
View ArticleMake Redis as optional
I am using spring boot with Redis.Redis is running as Docker containerspring.cache.type=redisspring.redis.host=localhostspring.redis.port=6379 Redis is a memory DB, if it finds data in Redis based on...
View ArticleHow to get only one Redis event when running multiple services?
I have a java application running as a microservice that receives events for keys that expired in Redis (Redis is configured with "config set notify-keyspace-events Ex"). These events are read in the...
View ArticleConfiguration sprind-session-data-redis in spring mvc based on Java class config
I add spring-session-data-redis 2.3.1 for store tomcat session on redis so I got this exception:How fixed this exception?Oct 26, 2020 10:41:40 PM org.apache.catalina.core.StandardContext...
View ArticleConfiguration spring-session-data-redis in Spring MVC based on Java class config
I add spring-session-data-redis 2.3.1 for store tomcat session on redis so I got this exception:How fixed this exception?Oct 26, 2020 10:41:40 PM org.apache.catalina.core.StandardContext...
View ArticleRedis - How to configure custom conversions
In spring-data-redis, How do we need configure custom converters that can be auto-wired/injected from Spring boot application or configuration.I read about @ReadingConverter and @WritingConverter from...
View ArticleCould not get a resource from the pool(SocketTimeoutException:)
I'm running multiple worker threads(around 10) to access the data from the redis Q.For the i'm using infinte timeout for Jedis Client. Jedis jedis =...
View ArticleMismatching results in compress decompress in Gzip in Java
I use the following class to compress a JSON string in Spring Boot and decompress it on another service based in Vertx. In between components the byte[] is shared via Redis.import...
View ArticleSaving Integer or Long values in Redis using lettuce
I'm trying to use Lettuce library for Redis. It appears that any values or keys other than string type need a codec to be defined in the connection parameter. I was trying to save Integer and long...
View ArticleEnv variables in data class in Redis model annotation
Troubling to specify dynamic env variable in the model class @Hashkey Redis annotation.Model:@RedisHash("${spring.redis.namespace}:Book")public class Book { @Id private String id; private String...
View ArticleCan't get correct value from Redis through Spring
I'm stuck on this for quite some time. For token management, I'm using Redis. On the Redis, each token keeps a list of all the invoices my customers can see.For my example, my customer X can view the...
View ArticleHow are multiple expiration criteria set in Caffeine Expiry?
I'm using Caffeine v2.8.5 and I want to create a cache with a variable expiry based on:the creation/update of the value andthe last access (read) of this value.Whatever comes first should trigger the...
View ArticleRedis ERR Protocol error: too big inline request Error reading from the...
I am using micro-service and jrch jar to hit "redis-cli --pipe" with data attached to it via setInputStream(data);ShellExecuter.java /* * Open a new session, with your username, host and port Set the *...
View ArticleWhy does Redis show 2 clients connected when i run my spring boot project?
I have a Spring boot project with angular 2 front end ,when i run spring boot project and turn on the Redis server,the Redis server shows 2 clients are connected to it.Why is that? It should be 1...
View ArticleInstance safe HashSet of BlockingQueue
I need a data structure like HashSet<Obj, BlockingQueue<Obj> > ds which should be thread safe and instance safe. I can use redisTemplate to store this data structure as redis is thread safe...
View ArticleSpring boot redis session : Failed to serialize object using...
I am having a problem while serializing one of my session beans in redis.Caused by: org.springframework.core.serializer.support.SerializationFailedException: Failed to serialize object using...
View Article