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
49
votes
5 answers

INFO warnings about multiple modules in Spring Boot, what do they mean?

I recently bumped up my spring boot version to 1.4.0. Now I see the following warnings below. I am using spring-mongodb and spring-redis (strictly for caching). Is this something I should be concerned about? Multiple Spring Data modules found,…
demig0d
  • 1,131
  • 1
  • 12
  • 24
34
votes
7 answers

Spring - Multiple Spring Data modules found, entering strict repository configuration mode

I am using Spring boot 2 with Spring Data, Spring-Data-Elastisearch and Spring-data-Redis(for http sessions). When i start the app. I'm receiving 2017-10-29 17:38:33.376 INFO 18625 --- [ restartedMain] .s.d.r.c.RepositoryConfigurationDelegate :…
22
votes
1 answer

Pipeline Redis commands with Reactive Lettuce

I'm using spring boot webflux + project reactor + lettuce for connecting and querying Redis in a non blocking way. I have configured the ReactiveRedisTemplate with LettuceConnectionFactory. The spring documentation states that the only way to use…
19
votes
4 answers

Jedis, Cannot get jedis connection: cannot get resource from pool

I have seen answers in couple of threads but didn't work out for me and since my problem occurs occasionally, asking this question if any one has any idea. I am using jedis version 2.8.0, Spring Data redis version 1.7.5. and redis server version…
Bikas Katwal
  • 1,895
  • 1
  • 21
  • 42
16
votes
1 answer

RedisCacheManager Not Updating keyspace_misses

I’m using the spring-boot spring-data-redis 1.8.9.RELEASE RedisCacheManager implementation of CacheManager for caching. One metric that I want visibility into is the cache hit/miss ratio. To get that, I’m extracting the keyspace_hits and…
Always Learning
  • 2,623
  • 3
  • 20
  • 39
16
votes
1 answer

Apply Spring Data's ReactiveCrudRepository to Redis

I'm playing with Spring Boot 2 with webflux. I'm trying to use ReactiveSortingRepository to simplify redis ops. public interface DataProfileRepository extends ReactiveSortingRepository { } Simply use this…
HooYao
  • 554
  • 5
  • 19
16
votes
1 answer

Spring RedisConnectionFactory with transaction not returning connection to Pool and then blocks when exhausted

My configuration for creating the connection factory with with a connection pool. I do have a connection pool. Most of this code is copied from Spring's RedisAutoConfiguration which I have disabled for particular…
Olayinka
  • 2,813
  • 2
  • 25
  • 43
15
votes
3 answers

Spring Cache with Redis - How to gracefully handle or even skip Caching in case of Connection Failure to Redis

I've enabled Caching in my Spring app and I use Redis to serve the purpose. However, whenever a connection failure occurs, the app stops working whereas I think it had better skip the Caching and go on with normal execution flow. So, does anyone…
Peter Bean
  • 313
  • 2
  • 9
14
votes
1 answer

Springboot fail to start if Redis is down

Redis is optional in my application & this is one of the requirement that even if Redis is down, application MUST be able to start without any issue. I was able to handle this with spring-data-redis 1.8.1 version but it's causing issue when I…
Renu
  • 141
  • 1
  • 7
14
votes
1 answer

Are there any ways to check whether a key exists with RedisTemplate?

Are there any ways to check whether a key exists with RedisTemplate? or in other words, are there any equivalent of Redis exists command in RedisTemplate API?
Lily
  • 355
  • 1
  • 3
  • 11
14
votes
3 answers

Spring Redis - Indexes not deleted after main entry expires

I am saving new entries with a Spring Data Repository. I have a TTL of 10 seconds for each entry. When I save an entry with indexes, here is what i get in Redis 127.0.0.1:6379> keys * 1) "job:campaignId:aa" 2)…
BkSouX
  • 739
  • 5
  • 13
  • 29
13
votes
4 answers

NoSuchMethodError: org.springframework.data.repository.config.RepositoryConfigurationSource.getAttribute

I am trying to use spring-data-redis in a spring-boot application to work with redis. I am creating JedisConnectionFactory as follows: RedisStandaloneConfiguration configuration = new…
user87407
  • 647
  • 3
  • 7
  • 24
13
votes
3 answers

findAll() method of CrudRepository is returning null values

I am working with Spring data Redis and have the following repository: public interface MyClassRepository extends CrudRepository { } When I call findAll(Iterable< String> ids) method, correct data is returned: final List
Ms. Zia
  • 411
  • 3
  • 12
13
votes
7 answers

Mock redis template

I am facing a issue in mock redis template. Can any one help me to write unit test for below class. @Repository public class CasheRepo { @Autowired private RedisTemplate template; public Object getObject(final String…
lahirumw
  • 153
  • 1
  • 1
  • 9
12
votes
2 answers

NotSslRecordException: not an SSL/TLS record

I'm using Redis Spring Data (1.8.9.RELEASE) with Lettuce (4.5.0.Final) as underlying Redis driver. It's using netty of version 4.1.29. We're using Redis ElastiCache with Encryption-In-Transit and Encryption-At-rest enabled. I'm getting below error.…
Pankaj
  • 3,512
  • 16
  • 49
  • 83
1
2 3
68 69