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

Does Spring Data Redis support Externalizable?

I am new to Redis things. I have some Object which is Externalizable. But Spring Data Redis is not working with these Objects. Does Spring Data Redis need Serializable strictly or there is some way to work with Externalizable as well?
BHANSALI MUKESH
  • 119
  • 1
  • 6
0
votes
3 answers

Redis BITOP using Spring data Redis

I am looking for an option to perform Redis BITOP using Spring RedisTemplate. I tried searching internet for an example but couldn't find anything similar. I was able to get the bitOp function from JedisStringCommands class but not sure how to use…
Girish NJ
  • 99
  • 1
  • 7
0
votes
1 answer

Spring Data Redis repository query by Geospatial Index field

Based on Spring Data Redis guide, and having the following defined: Model @RedisHash("positions") public class Position { @Id private String id; @GeoIndexed private Point coordinates; //... } Connection @Configuration public…
y.luis.rojo
  • 1,794
  • 4
  • 22
  • 41
0
votes
1 answer

Session Replication issue between Cloud Foundry app instances after Scaling app's instance

I have Spring Boot application which binds with ClearDb(MySQL) and Redis Cloud as a backing store. My application will create an simple account and stores in MySQL. I have used spring-session-data-redis to store HttpSession session attributes into…
0
votes
0 answers

Spring data redis 2.0.2.RELEASE eclipse import error

Download spring data redis 2.0.2.RELEASE source code from Github, import with eclipse(Version: Mars.2 Release (4.5.2)) [import - Maven -Existing Maven Projects]. There were still some problems after resovled the problems lombok and…
walkwolf
  • 29
  • 5
0
votes
2 answers

How to get all the keys and values under the specific hash in redis?

I have tried to read all the key and values inside the specific redis hash key with the below java code, import redis.clients.jedis.Jedis; public class RedisDBExport { public static void main(String[] args) throws Exception { …
sathya
  • 199
  • 5
  • 26
0
votes
1 answer

Puzzled with @Resource injection with name attribute

I'm puzzled with such kind of dependency injection shown as an example in spring data redis: https://docs.spring.io/spring-data/data-redis/docs/current/reference/html/#redis:serializer // inject the template as ListOperations …
aure_bobo
  • 138
  • 2
  • 8
0
votes
2 answers

Spring Redis issue: GetAllCacheNames from redis cache is not working with RedisCacheManager

Hi below is my redis cache configuration, and I am trying to get all the cachename stored on redis server using: redisCacheManager.getCacheNames() but it doesnot gives me the cacheName present in my redis server. I prefix cacheName using Cachable…
atul tripathi
  • 239
  • 4
  • 14
0
votes
1 answer

Use @CachePut in springmvc project,but get the key and the value two separate data in redis

In the spring MVC project, I'm try to cache data with @CachePut, but in redis, there are two separate data for key and value: At the same time, I did the same thing with the springboot project and got the normal results: The configuration in…
wf2311
  • 23
  • 4
0
votes
1 answer

Get the event name in redis using java

If I listen event in redis, just like command below, $ redis-cli --csv psubscribe '__key*__:*' Reading messages... (press Ctrl-C to quit) I can get things…
teik
  • 508
  • 4
  • 26
0
votes
2 answers

java.lang.annotation.AnnotationFormatError in Spring Redis integration

I have developed a library (smartconnect-commons) which has integration with redis caching using spring-data-redis. This library can be plugged-in with any application which ever wants to use redis. JUnit tests in that library are successful. No…
Naveen
  • 907
  • 2
  • 15
  • 25
0
votes
2 answers

Spring Data support for Redis BRPOPLPUSH

I am using Jedis for Accessing Redis via Spring Data.
Kanagavelu Sugumar
  • 18,766
  • 20
  • 94
  • 101
0
votes
1 answer

Spring: RedisMessageListenerContainer not working when running app from command line via java -jar

I have the following RedisConfig in my spring app @Configuration public class RedisConfig { @Value("${redis.hostname}") private String redisHostName; @Value("${redis.port}") private String redisPort; …
varunkr
  • 5,364
  • 11
  • 50
  • 99
0
votes
1 answer

Redis georadius but with different sorting order

I am using redis to store and fetch interesting info around the user and show it as a feed. Lets say I need to fetch all listings with in a given radius R (WITHDISTance) BUT sorted in a reverse chronological order and NOT by distance (as with redis…
Vijith
  • 77
  • 1
  • 10
0
votes
0 answers

Jedis is taking too much time in getConnection() and socket IO

We are facing issues while connection to Redis in out localhost through spring-data-redis (spring boot application). Data collected through profiler Issue 1: Most of the time application is spending in getConnection(), releaseConnection() and…
Pragati
  • 1
  • 2