Redis on Java Connection Pool - number of connections keep increasing
I am trying to configure the Jedis connection pool. Below are my settings: jedisConFactory.getPoolConfig().setMaxTotal(30); jedisConFactory.getPoolConfig().setMaxIdle(10);...
View ArticleMock redis template
I am facing a issue in mock redis template. Can any one help me to write unit test for below class. @Repository public class CasheRepo { @Autowired private RedisTemplate<String, Object>...
View ArticleRedis - how to deserialize a Map cached in redis?
I am trying to move some user settings to a cache in Redis. In the current solution, the settings are cached in the app memory as: private final Cache<Integer, Map<Integer, Object>>...
View Articlecorrect way to establish a redis connection with lettuce in java 8
I am trying to build a Denodo java stored procedure that communicates with redis via lettuce. I am using the Denodo 4e eclipse extension and oxygen as recommended by Denodo. I am clearly missing...
View ArticleJava Lettuce Reactive Pattern - Catch Errors?
I'm trying to use lettuce instead of Jedis for it's reactive pattern. Jedis can block my vertx eventloop and instead of making it a blocking operation I'd rather have it be reactive. I can...
View ArticleJedis - Missing HostPort class for simple program
I'm viewing RedisLab first course for Java developer, In Hello World program they are using HostPort which isn't found in jedis: Jedis jedis = new Jedis(HostPort.getRedisHost(),...
View Articlewhat's the difference between spring intergration redis and spring data redis?
what's the difference between spring intergration redis and spring data redis? I am a little confused about this. What's the relationship between them?
View ArticleHow to use FLUSHDB ASYNC with RedisTemplate?
Redis 4.0.0+ support flushdb async, but i can't find it on RedisServerCommands, is there any way to use flushdb async?
View ArticleSpring Filter - cycle life for HttpSession with Bean Scoped session - do not...
i have a probleme with httpSession and spring redis implementation. I have declare a filter who have one job. Catch a request param and set it into session. This attribute is use later for call an...
View ArticleRedis with Springboot throws : No Capable converter found
I am trying to use Redis in a spring boot application as a cache. Below is how i am trying to use. RedisEntity.Java @Getter @Setter @RedisHash public class RedisEntity { @Id private RequestObject...
View Articlespring-data-redis cacheNames don't work if key-prefix is present
Assuming I have spring-data-redis application with the following method: @Cacheable( value = "cacheName", key = "T(java.lang.String).format('tiles:%s', #categories.hashCode())") public...
View ArticleSpring Data Redis Expire Key
I have a One Spring Hibernate Application. In my application, Recently i am implemented Spring data Redis. spring-servlet.xml <!-- redis connection factory --> <bean id="jedisConnFactory"...
View ArticleHow to get Key & Value both from RedisFuture while using RedisAsyncCommands...
How to get Key & Value both from RedisFuture while using RedisAsyncCommands in Lettuce. RedisClient redisClient = RedisClient .create("redis://localhost:6379/"); StatefulRedisConnection<String,...
View ArticleSubscribe to redis channel (pubsub) using lettuce reactive commands
I am using the io.lettuce.core library and I am having trouble subscribing to a channel using the RedisPubSubReactiveCommands interface. I have a StatefulRedisPubSubConnection and an active redis...
View ArticleShare Spring Session with Redis Database
Following scenario: DESCRIPTION: I develop two microservices with Spring. One Service is the auth service and generates the session. The other service is the ui-service which needs to know if a...
View ArticleHow we can access the same cache between two war files?
I am using @Cacheable of Spring annotation to cache the data and Redis as the cache manager. I created the cache with name xyx on one war, now I want to access/update/delete the same cache on another...
View ArticleSpring Data and Redis - serializing transient fields
I am using Redis as my database with Spring data, with no custom value or hash value serializer. I assume the standrad JdkSerializationRedisSerializer should be used then for objects serialization. It...
View ArticleLettuce RedisCodec For Numbers
Using Lettuce 5 as a Redis client for the first time - I'm finding it rather confusing to simply create a RedisCommands<String, Long> for getting/setting Redis values as a Long. It's a little...
View ArticleHow can i find the list of nodes in a redis cluster?
I have created a redis cluster client as follows: // create uri RedisURI redisURI = RedisClusterURIUtil.toRedisURI(URI.create("redis://localhost:6379")); RedisClusterClient redisClusterClient =...
View ArticleVS Code not able to resolve Springframework Data Redis related dependencies,...
I am using VS Code to compile and debug my Spring Boot Java project with help of Gradle. I recently added Redis dependency to my project. The project compiles in Eclipse, but throws error in VS Code.
View Article