Questions tagged [spring-data-redis]

Spring Data Redis, part of the larger Spring Data family, provides easy configuration and access to Redis from Spring applications. It offers both low-level and high-level abstractions for interacting with the store, freeing the user from infrastructural concerns.

Spring Data Redis, part of the larger Spring Data family, provides easy configuration and access to Redis from Spring applications. It offers both low-level and high-level abstractions for interacting with the store, freeing the user from infrastructural concerns.

Features

  • Abstraction across multiple Redis drivers/connectors such as Lettuce and Jedis.
  • JDK, String, JSON and Spring Object/XML mapping serializers.
  • Spring cache abstraction for use with Redis.
  • JDK Collection implementation on top of Redis.
  • Pub/Sub integration.
  • Reactive and imperative APIs.

Online Resources:

Version History

1029 questions
0
votes
2 answers

Spring-data-redis: cacheManager configuration issue

I am using redis as my spring cache implementation. And the official doc says we should configure the cache manager like this:
maxwong
  • 63
  • 2
  • 7
0
votes
1 answer

Set the "key" in Spring Redis

I am able to store my message using the following command and spring seems to be setting the Key: org.springframework.data.redis.core.RedisTemplate.boundListOps("myid").rightPush(mymessage); Is there any way I can generate the Key and pass it while…
user3101143
  • 137
  • 1
  • 3
  • 10
0
votes
2 answers

Will fetching members from a redis SET will fetch everything to memory?

I am using Spring Data Redis. If a Redis SET has millions of values, will fetching its members (am using members() function) create a Java Set in the heap with a million values? Or is values fetched as and only required? If all the values are…
sinujohn
  • 2,506
  • 3
  • 21
  • 26
0
votes
2 answers

Strategy to manage Redis collections in Java

I have a web application where I use a relational database and Redis for storing my key/value pairs. I am using Spring Data Redis in my DAO methods to access Redis collections. The problem is that having many Redis collections in the application…
Seckin Tozlu
  • 547
  • 2
  • 5
  • 16
0
votes
1 answer

Spring Data for Redis: when dealing with values, does it only works with StringRedisTemplate?

When dealing with strings with Spring Data for Redis, I noticed the following behavior: Given the code below: template.opsForValue().set("person", "value"); it only works when I'm using an instance of StringRedisTemplate, and not when I'm using an…
Kico Lobo
  • 4,374
  • 4
  • 35
  • 48
-1
votes
0 answers

unable connect GCP memorystore (redis instance) spring boot application version 3.1.0

I'm currently using Spring Boot version 3.1.0 along with GCP Memory Store, which serves as a Redis instance. However, I'm getting below exception while establishing a connection to Redis. I've attempted this connection using both a GCP Cloud…
-1
votes
1 answer

Am unable to filters on Date fields with Redis

Am unable to filter on Date fields with Redis-search eg: entityStream.of(Object.class), at the same time, being able to filter other data types but not with Date type tried with the below patterns but not working SearchStream search =…
-1
votes
1 answer

Spring boot redis connection not working only during junit testing

Have a simple project with following config @Configuration @EnableRedisRepositories public class RedisConfig { @Bean public RedisTemplate redisTemplate(RedisConnectionFactory connectionFactory) { RedisTemplate
Anand Rockzz
  • 6,072
  • 5
  • 64
  • 71
-1
votes
2 answers

RedisTemplate Spring boot

I am going to store my token in redis RedisConfig @Configuration @EnableCaching public class RedisConfig { @Bean public JedisConnectionFactory jedisConnectionFactory() { RedisStandaloneConfiguration redisStandaloneConfiguration =…
Borka192
  • 23
  • 4
-1
votes
1 answer

Redis Server is down twice a day why?

I install Redis Server in Ec2 instance and type is STANDALONE. Storage of my redis is more than 6Million Keys.After crossing this storage server is down frequently twice a day why how to overcome this Issue ? Thank you in advance for your help!
-1
votes
1 answer

Spring boot can not read data from redis cache serializer.SerializationException: Cannot deserialize

I am trying to made spring boot app that is reading data from redis cache. But I can not. Firstly I am calling post api to create user and then I am calling get api to getUserById but I am getting error like…
Umut
  • 31
  • 1
  • 4
-1
votes
1 answer

How do Lua scripts block the entire Redis server?

Let's say I have a Redis instance running and I have two clients A and B connected to it. I execute a read only operations LUA script from one of them and from the other a read only hash operation by using the Redis template in Java. Since all…
Fernando
  • 381
  • 1
  • 5
  • 20
-1
votes
1 answer

Save POJO with big Map inside via Spring Data repository leads to StackOverflowError

Generally: i'm reading serialized object (as JSONs) from Kafka Stream and trying to save it to Redis using Spring Data repository. After a two calls (objects has not been saved to Redis) to repository.save() i get StackOverFlowError: Exception in…
keyzj
  • 321
  • 3
  • 13
-1
votes
1 answer

Redis Cluster Mode - replicas not working

I tried to set up redis cluster as per this tutorial. https://redis.io/topics/cluster-tutorial I was able to set this up by using something like this. redis-cli --cluster create 127.0.0.1:7000 127.0.0.1:7001 \ 127.0.0.1:7002 127.0.0.1:7003…
RamPrakash
  • 2,218
  • 3
  • 25
  • 54
-1
votes
1 answer

Is XClaim / claim supported in redis spring data - ReactiveRedisOperations.opsForStream()

To build a reliable message queue using redis streams, i am using spring-boot-starter-data-redis-reactive and lettuce dependency to process the messages from redis stream. Though i am able to add, read, ack and delete message through the api…
1 2 3
68
69