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

Issue connecting redis cluster using redisson

I am trying to connect redis cluster using redisson 2.3.0 and redis 5.0.7.Java code for connection:Config config = new...

View Article


DefaultSerializer requires a Serializable payload but received an object of...

I want to cache the List in redis. Below is the service method for the same:-@Autowiredprivate RedisTemplate<String, Object> redisTemplate;@Cacheable(value = "notes", key = "#userId")public...

View Article


Is java's setIfAbsent(K,V, ExpiryTimeout) in redis atomic?

According to the documentation, spring data redis's setIfAbsent(K, V) uses setNX command. However, setIfAbsent(K, V, Expiry timeout)seems to useset command, instead of setNX. Does it mean that having...

View Article

Redis save the object with Hash Value and Id

I use those gradle dependencies:implementation "org.springframework.boot:spring-boot-starter-data-jpa:2.6.6"implementation "org.springframework.boot:spring-boot-starter-data-redis:2.6.6"Method i use to...

View Article

Failed to deserialize payload. Is the byte array a result of corresponding...

My spring boot project uses spring-boot-starter-data-redis for caching on redis, Oracle database for persistent. It runs perfectly with current version 2.7.6. I've just upgraded to 3.0.5. The source...

View Article


Inconsistent behaviour of lettuce when pooling different topics from redis...

I am currently encountering some issues when trying to pool from two different topics of a Redis server via lettuce inside a Spring Boot application inside a Kubernetes cluster. Whereas pooling...

View Article

sentinel_user in users.acl not working with limited permission in redis 7

I am trying to have a sentinel_user acl user in users.acl file that will have limited permission to run commnads related to sentinel only.I tried setting this user as below following redis documentaion...

View Article

How to use ConnectionPoolConfig + UnifiedJedis + Transaction

I am using ConnectionPoolConfig + UnifiedJedis + Transaction. I am new for the redis using redis.clients 4.4.0-rc1, i have two questions1 - can i use ConnectionPoolConfig in this way?2 - Whats is the...

View Article


Image may be NSFW.
Clik here to view.

how to configure external redis server path in embedded-redis library

In this picture we can override UNIX path but not able to find any example

View Article


implementing hashtags in redisCluster in SpringBoot

We moved from redis standalone to cluster so I guess there is this issue surrounding hashslots that comes into picture because of which we are getting: CROSSSLOT Keys in request don't hash to the same...

View Article

Redisson, immutable object annotated with REntity

I'm using the Redisson client to store objects in Redis. I'm wondering how it's possible to define immutable objects when an object annotated with REntity must implement the default constructor.I tried...

View Article

Image may be NSFW.
Clik here to view.

Unable to get result from the Redis using Crud Repository in Spring Boot?

I am developing Spring Boot + Redis example. I've taken a reference from link : https://www.baeldung.com/spring-data-redis-tutorial. In this example, I developed repository method Student...

View Article

Could not setup redis using application.yaml

I am trying to setup redis cluster caching with spring boot version 2.7.14I can manually configure redis via beans. For example following way I can easily configure:@Slf4j@Configurationpublic class...

View Article


Error creating bean with name 'redisMessageListenerContainer' : Container...

I was trying to upgrade the Spring Boot version of my project which was earlier running on version 2.4.13, to version 3.1.1. I have used Redis as a pub/sub in my project and the current version for the...

View Article

Image may be NSFW.
Clik here to view.

Unable to get result from the Redis using Crud Repository in Spring Boot?

I am developing Spring Boot + Redis example. I've taken a reference from link : https://www.baeldung.com/spring-data-redis-tutorial. In this example, I developed repository method Student...

View Article


RedisCommandExecutionException: WRONGTYPE Operation against a key holding the...

@Data@Setter@Getter@Builder@AllArgsConstructor@NoArgsConstructor@RedisHash("ABC")public class ABCRedisEntity implements Serializable{ @Id private String identification; private String anotherAttribute;...

View Article

getting EOFExceptions in streaming pipeline to insert data into memoystore...

I'm trying to read from pubsub and writing it into memorystore redis instance. I'm using jedispool as the process is multithreaded. I'm able to write the data coming from pubsub into the instance only...

View Article


How to implement transaction with rollback in Redis

My program needs to add data to two lists in Redis as a transaction. Data should be consistent in both lists. If there is an exception or system failure and thus program only added data to one list,...

View Article

Non blocking way to return a mono response value

I have below code, what is the ideal way to return the value correctly from this method that uses reactive redis operations and is meant to serve as an common api to read a value from redis. I can...

View Article

Image may be NSFW.
Clik here to view.

Redisson distributed lock: Is it normal that a thread can get the lock before...

https://github.com/cuipengfei/Spikes/blob/22a9896137dd62bda5f030f5a3d33c67fba67310/jpa/spring-jdbc-distributed-lock-issue/src/test/java/com/github/spring/example/LockTest.java#L38C9-L49the above junit...

View Article
Browsing all 2203 articles
Browse latest View live


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