Quantcast
Channel: Active questions tagged redis+java - Stack Overflow
Browsing all 2203 articles
Browse latest View live
↧

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 Article


Mock 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 Article


Redis - 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 Article

correct 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 Article

Java 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 Article


Jedis - 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 Article

what'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 Article

How 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 Article


Spring 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 Article


Redis 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 Article

spring-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 Article

Spring 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 Article

How 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 Article


Subscribe 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 Article

Share 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 Article


How 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 Article

Spring 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 Article


Lettuce 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 Article

How 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 Article

Image may be NSFW.
Clik here to view.

VS 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
Browsing all 2203 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>