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
0 answers

Spring Data Neo4j 4 SerializationException

i configured Neo4j Connection as stated in neo4j documentation for spring neo4j 4. Whenever i call save() for a Node or try to get one with a GraphRepository interface i get the following…
Ceryni
  • 371
  • 1
  • 5
  • 18
0
votes
1 answer

spring boot how to invoke the newly fixed bug version?

I am using spring boot 1.2.5.RELEASE, and I use spring-boot-starter-redis. But I found a bug on spring-boot-starter-redis, and spring-boot already fixed it. The bug is here : Version 1.6 GA (Gosling) spring data redis starter exception Upgrade to…
diligent
  • 2,282
  • 8
  • 49
  • 64
0
votes
1 answer

Spring Data Redis: How do I know that MessageListener is ready?

According to the documentation for RedisMessageListnerContainer - public void addMessageListener(MessageListener listener, Topic topic): Adds a message listener to the (potentially running) container. If the container is…
aberg
  • 269
  • 3
  • 12
0
votes
0 answers

Spring data redis master and slave configuration in application-context.xml

I have done a poc on spring data redis by using jedis connection factory and redis template which is working fine and getting results fast with single node, but now i want to use master to write and child for read to improve reading performance so…
Balaji
  • 151
  • 4
  • 15
0
votes
1 answer

Retrieve Person object from Redis without providing hashcode

I am working on a Spring-MVC application in which I am inserting a Person object in Redis. Now When inserting the object, I also need to provide the hashCode value for Person retrieved. Is there any way, I can retrieve the Person object without…
We are Borg
  • 5,117
  • 17
  • 102
  • 225
0
votes
2 answers

Not able to load connection factory in Redis template and unable to find spring config xml

I am working on a Spring-MVC application in which I would like to use Redis to a String and an Integer value in the Redis Key-Value pair. My intention is to retrieve the Integer whenever I pass the String. I am getting an error when I am just trying…
We are Borg
  • 5,117
  • 17
  • 102
  • 225
0
votes
0 answers

Spring data redis error in Spring mvc framework

I'm using to redis in spring mvc based web application. so I used spring-data-redis & jedis. The library version is the following. Spring MVC 4.1.6 jedis 3.0 Spring data redis 1.6 SNAPSHOT Redis Server 3.0.2 (installed on Cent OS 7) Application…
Zin Zu
  • 1
  • 2
0
votes
1 answer

setting spring data jedis connection pool using application.yml file

We are using spring data redis. Below mentioned are property for sentinel configuration spring.redis.sentinel.master: globalsessions_dev spring.redis.sentinel.nodes:…
user2775185
  • 1,099
  • 3
  • 17
  • 30
0
votes
1 answer

Spring Bean Scope for StringRedisConnection

I have the following two bean definitions for Spring Data Redis. I cant seem to find the relevant documentation to determine the scopes(singleton,request or session) of these beans for a web app. @Bean public StringRedisTemplate redisTemplate()…
Shivam Sinha
  • 4,924
  • 7
  • 43
  • 65
0
votes
1 answer

Spring XD distributed mode redis template issue

When i Started execution with command line for xd-shell in spring xd distributed mode :bin# xd-shell **Getting following STACKTRACE Error:** 2015-06-07 10:41:37,443 1.1.0.RELEASE WARN main annotation.AnnotationConfigApplicationContext -…
NEO
  • 389
  • 8
  • 31
0
votes
1 answer

Spring data redis, multi-threading issue with Jedis

I am using redis in a heavily multi-threaded java application and getting intermittent ClassCastExceptions. Reading through various discussions seemed to point out this might be because the Jedis connection instance getting shared between multiple…
user2111500
  • 63
  • 2
  • 9
0
votes
2 answers

Redis Error in Spring Session sample using Maven and Spring Boot

I was trying to set-up this Spring-Session example using Spring Boot + Maven (the source in the GIT link is using Gradle). There were no compilation error, the deploy-able WAR file also got generated using the repackage goal. When trying to deploy…
yathirigan
  • 5,619
  • 22
  • 66
  • 104
0
votes
1 answer

ERR EXEC without MULTI - spring redis+jedis

I meet with exception during a transactional operation with spring-data-redis RedisTemplate cartCache; public void create(final Cartline cartline) { Object txResults = cartCache.execute(new SessionCallback() { public List…
SpringKo
  • 1
  • 2
0
votes
1 answer

does spring-data-redis support jedis sharding pool?

I am using spring-data-redis as the data access layer for Redis, for the data distribution, I tried to use the sharding feature of jedis, but looks spring-data-redis DOES NOT support sharding officially, is there any workaround or 3rd party library…
Emre He
  • 497
  • 11
  • 23
0
votes
1 answer

LazyInitializationException when trying to access detached objects left around in Redis by RedisCacheManager

I use Spring data Redis in order to cache serialized JPA entities in Redis using org.springframework.data.redis.cache.RedisCacheManager Here is the method: @Override @Cacheable(value = MapCacheConfiguration.DATABASE_CACHE_NAME, key =…
balteo
  • 23,602
  • 63
  • 219
  • 412