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
1 answer

Spring data redis 2.0.3 LettuceConnectionFactory on cacheManager creates cache key in blank namespace(folder) under mentioned cachebucket

I am new to spring data redis. I have used spring boot data redis 2.0.3 as shown below (from my gradle build) compile('org.springframework.boot:spring-boot-starter-data-redis:2.0.3.RELEASE') compile('io.lettuce:lettuce-core:5.1.3.RELEASE') When I…
N Raj
  • 1
  • 2
0
votes
1 answer

Redis Spring write to master , read from slave , no sentinel

I want have a setup of redis where I write to master and read from slave, without any sentinel. I can see spring does have an article for above here…
Manas Saxena
  • 2,171
  • 6
  • 39
  • 58
0
votes
1 answer

While trying to insert data in redis cache using Spring boot, getting some runtime error

Getting below error while trying to retrieve data via redis cache:- Null key returned for cache operation (maybe you are using named params on classes without debug info?) Builder[public java.util.List com.concretepage.CelebController.getAll()]…
0
votes
1 answer

Spring Data Redis doesn't persist Date as null value

I am new to Spring Data Redis and trying to save the deletedDate as null. When I am persisting deletedDate in Redis, its not persisting null. I am using Java8 LocalDateTime…
PAA
  • 1
  • 46
  • 174
  • 282
0
votes
1 answer

How to configure lettuceConnectionFactory in springBoot version 1.5.15.RELEASE

I was trying to configure LettuceConnectionFactory in spring boot project with 1.5.15.RELEASE version. This is my configuration file: import org.slf4j.Logger; import org.slf4j.LoggerFactory; import…
Balaji S
  • 1
  • 1
  • 2
0
votes
0 answers

Spring Redis deserialize fails on immutable property

I just updated from version 2.0.X of Spring Boot to version 2.1.X. I use Spring Redis for in memory storage, and one of the objects that I store in memory has a java.util.concurrent.locks.ReentrantLock. In version 2.0.X of Spring Boot, the object…
Raythien
  • 1
  • 1
0
votes
2 answers

Field error in object 'target' on field '': rejected value []; codes [typeMismatch.target.,typeMismatch.,typeMismatch.java.util.Date,typeMismatch]

I've created: https://jira.spring.io/browse/BATCH-2778 I am developing Spring Batch + Redis (Spring Data Redis) example. In this example, I'm reading student.csv file and storing all the data as is in Redis DB. I wanted to used dateOfBirth as Date…
PAA
  • 1
  • 46
  • 174
  • 282
0
votes
0 answers

Spring Data - Redis repository doesn't sort with pageRequest

I am calling repository by id and pageRequest parameters but I cannot manage to sort the result. I call my repository in service layer as follow: Sort sort = new Sort(Sort.Direction.DESC, "dateTime"); PageRequest pageRequest = new PageRequest(0,…
gabi
  • 1,324
  • 4
  • 22
  • 47
0
votes
1 answer
0
votes
1 answer

One directional modelling does not pull records when using Spring Data Redis

I am developing Spring Boot + Spring Data Redis example. In this example - I have modelled redis in nested fashion. When I am just pulling the Department details I am getting nothing. How come to solved this issue…
PAA
  • 1
  • 46
  • 174
  • 282
0
votes
1 answer

Redis @Reference does not work in Spring Data Redis

I am facing issues while implemeting @Reference in Spring Boot + Spring Data Redis. Address is a List in Employee and when I saved the office and home address and I was expecting the data to be saved with the Employee. But data did not get saved and…
PAA
  • 1
  • 46
  • 174
  • 282
0
votes
2 answers

Spring Data Redis - Issue while storing Date

I am using Spring Boot + Spring data Redis example to save Date into the Redis Cache. Although I used @DateTimeFormat @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd"), but still persistance happening is long value. Look like its…
PAA
  • 1
  • 46
  • 174
  • 282
0
votes
1 answer

Parameter 0 of method repositories in com.example.RedisApplication required a bean of type that could not be found

I am doing POC on Spring Boot + Spring Data Redis by taking reference from https://www.youtube.com/watch?v=_M8xoagybzU&t=231s and simply following the tutorial using Spring Boot version 2.1.0.RELEASE instead of 2.0.0.RELEASE. I am simply updating…
PAA
  • 1
  • 46
  • 174
  • 282
0
votes
1 answer

Redis - How the key HASH and SET and ZSET are related on the CrudRepository save?

I am new to Redis and developing code using Spring Boot + Spring Data Redis example. When I saved the records, I see KEYS gets created and out of these keys 4 are HASH, 1 ZSET and all others are SET. I did not see in the Spring docs, meaning of each…
PAA
  • 1
  • 46
  • 174
  • 282
0
votes
1 answer

Redis - Why details are saving both as HASH and SET using Spring Data Redis?

I am new to Redis and developing Spring Boot + Spring Data Redis example. I am using CrudRepository, Example and ExampleMatchers API to do the searching from the Redis Key value store DB. Now when I simply run my code, I saw that persons data saved…
Jeff Cook
  • 7,956
  • 36
  • 115
  • 186