871 questions
0 votes
0 answers
48 views
Spring boot Azure managed redis integration with managed identity where the Identity token expired every day
Problem statement Connect to Azure managed redis from spring boot (using Jedis/Lettuce) though managed identity where the identity token expires in 24 hours. In my application, the ...
0 votes
0 answers
79 views
How to configure spring-data-keyvalue to use Redis for persistence?
I have an application using spring-data-keyvalue. As I understand by default it uses HashMap without persistence. The documentation says I could use redis for that, with jedis (among others). I want ...
1 vote
1 answer
168 views
Java Spring - unit test config class
I have a Java Spring application with a RedisService for interacting with a Redis database. The RedisService constructor takes a JedisPooled object as the constructor dependency for using the Redis ...
0 votes
1 answer
226 views
JedisClusterOperationException Could not initialize cluster slots cache. When encryption mode is set to "required"
I have a spring app deployed to AWS Kubernetes, and an AWS elasticache with transit encryption mode set to required. When the java code below gets executed, it throws an exception Java code: ...
0 votes
0 answers
34 views
Migrate spring-data-redis 1.5.2.RELEASE to 2.3.12.RELEASE
I'm trying to migrate spring-data-redis 1.5.2.RELEASE to 2.3.12.RELEASE, but I'm finding that some methods in RedisCacheConfiguration are not in version 2.3.12.RELEASE I have the method ...
0 votes
1 answer
1k views
<JedisClusterOperationException> Could not initialize cluster slots cache
I have a redis-cluster docker image running locally, and I'm trying to connect to it from the java code, but I'm getting an error. Java code: JedisCluster jedisCluster = new JedisCluster(new ...
0 votes
0 answers
58 views
Why is Jedis client slow to access data from Elasticache Redis
I have a java springboot application running in an Amazion ECS container. This application is reading data from Elasticache for Redis OSS using Jedis library. The Elasticache Redis replication group ...
0 votes
0 answers
18 views
JEDIS, Query nested tables, how?
I have JSON structure in REDIS that looks something like: { "name": "value" "subtable": { "sub1":{ "subtime": 123456 } "...
0 votes
1 answer
1k views
Google Cloud JedisConnectionException : Failed to connect to any host resolved for DNS name
I’m experiencing an intermittent issue with my application that uses Jedis version 5.0.2 for Redis connectivity. The (random) error I'm encountering is: Failed to connect to any host resolved for DNS ...
0 votes
0 answers
103 views
can't catch Unexpected end of stream JedisConnectionException
try (Jedis jedis = jedisPool.getResource()) { logger.info("connection established after attempt: " +attempts); return operation.execute(jedis); }catch (JedisException e) { ...
0 votes
1 answer
259 views
Spring-AI : How to connect Redis VectorStore?
According to this commit, I now need to connect using RedisAutoConfiguration instead of RedisVectorStoreAutoConfiguration and I'm curious about how. commit comment Here is the Redis connection ...
0 votes
1 answer
65 views
Use Jedis `echo` in pipeline
The examples use Scala code, but the issue would be the same with Java. Way back in version 2 of Jedis, you could use echo in a pipeline: import redis.clients.jedis._ object Main { def main(args: ...
0 votes
1 answer
369 views
Put data with Redisson and Get with Jedis
I am new to Redis and have a scenario to put data to Redis using Redisson and get using Jedis (and vice versa). The data I am trying to maintain is Map<String, String>. For this I am using HGET ...
1 vote
1 answer
125 views
Facing SocketException: Broken pipe (Write failed) when querying using MGET command using Jedis (Java Redis Client)
I have a use case to identify expired tokens stored in cache, so I implemented a method in the following way - private Boolean isTokenExpired(long programId,String token,Jwt jwt){ try { if(...
0 votes
2 answers
249 views
JEDIS/REDIS 'ON' Keyword or broken query?
Very new to REDIS, and having issues using JSON/Index/Query that is driving me crazy. Example struct public class MyType implements Serializable { { @SerializedName("myval") @Expose ...