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

A Redis distributed lock confusing result with Lua script

I use such code to achieve Redis distributed lock: DefaultRedisScript script = new DefaultRedisScript<>(); script.setScriptText("if not redis.call('get', KEYS[1]) then return redis.call('set', KEYS[1], ARGV[1],'ex',ARGV[2],'nx') else return…
Rick
  • 141
  • 2
  • 15
0
votes
1 answer

Need to query tile38 through java

This is the url to Tile38 db https://github.com/tidwall/tile38 Actually as per the given example in java I was able to do a get and set of entries to the collection but I want to scan the collection and execute the nearby query using JAVA. Please…
0
votes
1 answer

How to make Redis repositories transactional

Spring Data Redis support repositories as alternative to redis templates. But everything I found about @Transactional support is about templates, not repositories. Is there any way to make redis repositories transactional? I added…
VB_
  • 45,112
  • 42
  • 145
  • 293
0
votes
1 answer

Redis cache not working with atlassian-connect-spring-boot-jpa-starter

I am using sample from https://github.com/spring-projects/spring-boot/tree/master/spring-boot-samples/spring-boot-sample-cache Sample project work as it is when i run using mvn spring-boot:run -Predis However when i add dependencies
Shiv
  • 199
  • 5
  • 16
0
votes
2 answers

Pivotal cloud foundry RedisConnectionFactory

Currently I'm using Redis that is provided by PCF. I'm connecting to it using JedisConnectionFactory from spring-data-redis providing needed configs like this: @Configuration public class RedisConfig { @Bean public JedisConnectionFactory…
Oleg Kuts
  • 769
  • 1
  • 13
  • 26
0
votes
1 answer

Spring Data Redis: Deserializiation

I have a class of different data types. One of them is a Map of Integer keys and int array values (It has 24 cells). I store the class in Redis using Spring Data but when I get it from Redis, it gives the following error. This is the Map:…
Cyber
  • 49
  • 1
  • 13
0
votes
0 answers

Query possibilities: GemFire vs. Redis

It seems Redis can provide same functionality as achieved thru Gemfire OQL queries, but with much of code change using spring/-boot/Java. Any insights would be highly appreciated! Storing Data - Gemfire can store Parent Object and use OQL capability…
Divs
  • 1,578
  • 2
  • 24
  • 51
0
votes
1 answer

Redis key expire event through EXPIREAT command with past timestamp

According to redis doc: EXPIREAT has the same effect and semantic as EXPIRE, but instead of specifying the number of seconds representing the TTL (time to live), it takes an absolute Unix timestamp (seconds since January 1, 1970). A timestamp…
Monzurul Shimul
  • 8,132
  • 2
  • 28
  • 42
0
votes
0 answers

spring transactionManager make StringRedisTemplate get no data in Service

In Controller, can get redis data In Service,can't get my service method begin with "get" if add in transactionManager can get data
0
votes
1 answer

How to check how many total redis connection , that a REDIS server can given to clients?

We are using REDIS cache , and using Spring-Redis module , we set the maxActiveConnections 10 in application configuration , but sometimes in my applications am seeing below errors Exception occurred while querying cache :…
Bravo
  • 8,589
  • 14
  • 48
  • 85
0
votes
1 answer

Error accessing Spring session data stored in Redis

In my REST controllers Spring project, I want to store Session information in Redis. In my application.properties I have defined the…
Pep Gomez
  • 197
  • 4
  • 14
0
votes
1 answer

Cookie Value Different than httpSession.getId Spring Boot 2.0.0.1

Am working on multinode spring boot application where authentication is done on one server and redis session data is stored into redis database.On Subsequent request after login- authentication from first server ,request is passed to another server…
Sanjay A
  • 316
  • 3
  • 15
0
votes
0 answers

How to make Spring boot with Redis Sentinel work with Docker

I am trying to set up a Spring boot application with Redis Sentinel 3.2.11 using docker. However I am getting Caused by: io.netty.channel.ConnectTimeoutException: connection timed out: /172.27.0.2:6379 My docker compose configuration version:…
JDev
  • 1,662
  • 4
  • 25
  • 55
0
votes
1 answer

I am trying to implement multiGet operation in Spring on Redis, it throws me an error

I am trying to execute multiGet function in Spring on Redis. It throws me an error. I have implemented get function successfully but while implementing multiGet it asks me for a Collection as second parameter. I am not sure what to enter? Can…
Ruchita J
  • 23
  • 7
0
votes
3 answers

"Could not return the resource to the pool" error with Spring and Redis

I was trying to implement Redis with Spring with XML based configuration. My configuration file like as below:
vtokmak
  • 1,496
  • 6
  • 35
  • 66