Streams not supported when using Jedis 3.6.0 in spring boot 2.3.x
Today when I want to using Jedis to consume stream, throw this error:java.lang.UnsupportedOperationException: Streams not supported using Jedis! at...
View ArticleRedisson Capturing Key Expire Event
I am using Redis as a cache service in my Big Data application. The main purpose of Redis is to validate key which we receive from every request. We use RMap for storing key and value pairs, example of...
View ArticleSpring boot application cannot reconnect to Redis and find Consumer group
There is a Spring Boot application which is part if a micro-service environment (Kubernetes) and connects to Redis, when all the microservices are booted up the application works fine, however when the...
View ArticleSpring boot - Embedded redis : redis listen to local ip instead of localhost
I have a problem with my embedded redis during IT tests, hope you'll help.A bit of context :I am working on a spring boot backend, and we wrote for this application integration tests, using embedded...
View Articlespring-boot redis : How to invalidate all sessions of a user?
I'm new to redis. I've followed this tutorial to use HttpSession with redis.https://docs.spring.io/spring-session/docs/current/reference/html5/guides/boot.htmlNow my application has 'Sign out from all...
View ArticleRedisTemplate mock is only working in the test class
Class A{@Autowiredprivate RedisTemplate<String, Object> redisTemplate; private String readFromCache(String bucket, String key) { Object object = redisTemplate.opsForHash().get(bucketName, key);...
View ArticleIs there a way to have Jedis automatically use a connection pool for command...
I came across a class in a project I'm working on that looks likepublic class RedisClient { Logger logger = LoggerFactory.getLogger(RedisClient.class); JedisPool pool; public RedisClient(String...
View ArticleSpring boot 2 Redis cache default client
I am using Spring Boot 2 and this dependency to use redis cache:implementation 'org.springframework.boot:spring-boot-starter-data-redis'As I read before Letucce is a default client for Redis. But, when...
View ArticleRedis cluster on Docker Compose with network_mode host - Unable to connect to...
I set up a Redis cluster with 6 nodes as follows. From the redis-cluster documentation, network_modehost must be used.version: "3.9" services: redis0: build: context: . dockerfile:...
View ArticleUnit tests apache beam stateful pipeline with external dependencies
I have an apache beam pipeline that reads from pubsub, enriches data using Redis and finally writes to pubsub. I am trying to write tests to test the enrichment Dofn which is a stateful DoFn. Here the...
View ArticleWhy Getting NoClassDefFound error for JedisConnection when using Spring Redis
Hello when trying to use spring-redis i am getting java.lang.NoClassDefFoundError: Could not initialize class org.springframework.data.redis.connection.jedis.JedisConnectionexception when doing any...
View ArticleHow to store netty Channel object in Redis database or any other solution?
As i am using netty to make chat application.As i have cluster of netty servers.As i am storing channel id of all clients in Redis to have reference of all channels which are connected to netty...
View ArticleSpring data redis - Hash of Map is retrieved as Map, how to fix this?
I am using Spring Data Redis and using hash operations to save the Map<String, Long> as a hash in Redis.Suppose hash is "some hash", hashkey is "unique key" & hash value is "Map<String,...
View ArticleRedisson release lock from different threads
I'm trying to create an infrastructure where different machines acquire shared locks through Redisson. Once the lock is acquired, some async tasks gets done, finally, when I finish the job, I'm...
View ArticleIs there any multimap with different values for one key in java-redis?
My application requires a multivaluemap to store in redis cache with a key having 2 different objects saying object1 and object2. Map can return all the values or a single value based on type parameter...
View ArticleError creating bean with name 'enableRedisKeyspaceNotificationsInitializer'...
i'm trying to run Maven Spring application using Redis+ MYSQL, but i unable to run the app due to this error, i've been searching all over the web for proper answer but misfind.Error starting...
View ArticleIs there any multimap with different values of different object for one key...
My application requires a multivaluemap to store in redis cache with a key having 2 different objects saying object1 and object2. Map can return all the values or a single value based on type parameter...
View ArticleQuestion about how to use scan specific index on redis
i have code like this... for scan on java code for scan in redis dbScanOptions options = ScanOptions.scanOptions().match(RedisKey.POST+"*").count(2).build();Cursor c = redisConnection.scan(options);in...
View Articlereset the TTL in redis
How to reset the TTL on the redis hash key?There is already TTL on the redis say 60 sec and now I want to make it 300 sec using spring boot.
View ArticleRedis set key, val only if val matches a previous one for concurrency
How can one do this? Using Jedis and Java.I am working with hset right now, but does no really matter.Does one have to send along lua code to achieve this? How is that done with Jedis?
View Article