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

Jedis expected value at line 1 column 1 when using setJson

In a Java 17 project I have this Redis client:@NoArgsConstructor(access = AccessLevel.PRIVATE)public class RedisClient { private final HostAndPort hostAndPortConfig = new HostAndPort(REDIS_HOST,...

View Article


Cannot get Jedis connection; Could not get a resource from the pool

I am running a batch job for every 5 minutes and I don't wanna other nodes to run the same job hence I am using Jedis lock to lock an object for 5 minutes. So that other node won't get the lock if they...

View Article


Spring Cloud Implement RateLimit using redis

I am trying to implement Request rate limit using Springboot cloud gateway and Redis.My Spring version is 2.5.12spring-data-redis : 2.7.13Here is my keyResolver@Override public Mono<String>...

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.@Repositorypublic class CasheRepo { @Autowired private RedisTemplate<String, Object> template;...

View Article

How to read data from Redis cache and query it in Java?

I am new to redis cache i am using core or plain java not spring boot to interact with redis cache. I am able to connect to redis cache using the jedis client but not getting how to retrieve the data...

View Article


Java Redisson Client Redis Exceptions :...

I'm setting up a Redis cache layer using AWS Elasticache Redis version 7.0.7I'm usign Java Redisson client version 3.16.0 and java version 1.8However one of the requirement is to setup a fallback...

View Article

Error creating bean with name 'redisConverter': Unsatisfied dependency...

I have added redis-om and I am facing a problem`org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'redisConverter': Unsatisfied dependency expressed...

View Article

org.redisson.client.RedisException: ERR unknown command 'READONLY'

aused by: java.util.concurrent.CompletionException: org.redisson.client.RedisException: ERR unknown command 'READONLY'. channel: [id: 0x3098cb38, L:/100.64.0.1:55907 - R:10.8.137.18/10.8.137.18:8510]...

View Article


RedisCommandTimeoutException: Command timed out after 1 minute(s)

I have a problem with my project.I'm currently migrating jedis to lettuce using redis list, and in my project I'm also using redis stream.I have a problem, when my code executes this line:...

View Article


Using Redis just for blocking and call back functionality or springboot

This is what I am trying to do and wondering if I should use Redis or there is a springboot equivalent that I could use for what I am trying to achieve.I am trying to send a receipt of a transaction to...

View Article

Sentinel Failed to resolve hostname redis

Dears,I tried to access remote redis cache services from redis sentinel services for high availability. But sentinel server couldnt resolve redis host name.java.net.UnknownHostException: No such host...

View Article

Project Reactor: is it right to call subscribe within async context?

I stock encryption keys in redis database. I want to implement a fallback mecanism to generate keys unless they are already present.What perturbates me with a solution I come up with is that I call...

View Article

Redis path structure issue with Spring Boot

I Have a simple Spring Boot application with Redis and H2.Follow the dependencies...

View Article


redis.clients.jedis.exceptions.JedisDataException: ERR unknown command...

I have cloned a project and want to bring it up : https://github.com/jphaugla/redis-om-spring-jph#readmebut the problem is that I get ERR unknown command 'JSON.SET', I use the same docker-compose that...

View Article

Redis Commander does not show cached data

I have implemented Redis to my project. It seems to work as when I use Postman toGET some information from http client. For the first query it needs ~150 ms and for the further onesjust ~5-7 ms. Now,...

View Article


Issue with Redis CLuster "MovedDataException"

I have a Redis cluster setup and working.a specific call is returning this error:redis.clients.jedis.exceptions.JedisMovedDataException: MOVED 12867 127.0.0.1:7002any ideas folks ?aI cant work it out.....

View Article

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


Quarkus BuildStep

I am trying to transform annotation data using BuildStep as stated on the link belowhttps://quarkus.io/guides/cdi-integration#annotations_transformer_build_itemHowever, i am not seeing any indication...

View Article

Unlock Redis Locks From CLI

I have a java app that has multiple instances over a local network. It uses Redis Redlock to manage integrity of a shared database. Issue here is this java app is still highly unstable so that it crash...

View Article

Spring Data Redis. JPA Repository findBy is not working

I'm using spring-data-redis 2.7.5 version.Object declaration: @Data @AllArgsConstructor @NoArgsConstructor @Getter @Setter @ToString @RedisHash("Applications") public class Applications implements...

View Article
Browsing all 2203 articles
Browse latest View live


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