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

Is there a way to retrieve data from redis in my jsp pages?

I am creating a spring boot server, and I would like the initial page (index.jsp) to be a datatable with information coming from the redis database. Anyone know how to do this with javascript or inside jsp pages?
cfthody
  • 7
  • 1
  • 3
0
votes
1 answer

Getting java.net.UnknownHostException: hostname: Name or service not known while using spring-data-redis-starter

I am trying to connect to Redis in cluster mode by using spring-boot-starter-data-redis and lettuce library and getting below exception, 2019-08-21 00:55:42.695 WARN 75 --- [ioEventLoop-6-1] i.l.c.c.topology.ClusterTopologyRefresh : Unable…
user2206366
  • 461
  • 3
  • 6
  • 17
0
votes
1 answer

spring session with redis master/slave configuration - eventual consistency question

I've got a question regarding spring session with Redis backed implementation on the production environment. Due to performance reasons, we are wondering about using Redis in master/slave configuration with lettuces readFrom SLAVE_PREFFERED. But I'm…
Rahl
  • 11
  • 1
0
votes
0 answers

Deserialization issue accessing Redis from two different microservices

Im trying to access same redis instance from two microservices using spring-data-redis. I am having deserialization issues. Imagine you have redis instance and two microservices are trying to access it. For simplicity sake, imagine a…
user1172490
  • 137
  • 11
0
votes
1 answer

RedisTemplate executing get vs multiget performance difference

In RedisTemplate i understand that executing get multiple times will end up making multiple network calls to the redis cluster and then will retrieve the result. Will the same happen in case of multiget or the multiget will pass all the keys at once…
ritesh malav
  • 11
  • 1
  • 6
0
votes
1 answer

Problem in configuring spring boot and redis

I have an old spring boot application (1.5.0-FINAL) and I can't change this version. I want to add redis to my application, that's what I did: 1) added the maven dep: org.springframework.boot
Phate
  • 6,066
  • 15
  • 73
  • 138
0
votes
1 answer

Spring redis unable to autowire repository

I'm using custom crudrespository to persist data in redis. However, I'm unable to autowire custom repository. All the configuration seems correct and redis is running on my local. import org.springframework.data.repository.CrudRepository; import…
heart_coder
  • 189
  • 13
0
votes
1 answer

Consider defining a bean of type 'com.test.project.repositories.TaskRepository' in your configuration @Repository annotation is already there

I am building a basic spring boot application with Redis as the data store. I have followed all the general spring-data-redit tutorials and doing everything exactly like here.…
0
votes
1 answer

spring data redis zadd with Long type key doesn't work

I am trying to learn Redis here by doing some examples. I have an Entity called DriverLocation where it has a timestamp called updatedAt which is an epoch time with millisecond representation. The thing is I want to have a SortedSet so that I can do…
quartaela
  • 2,579
  • 16
  • 63
  • 99
0
votes
2 answers

Does @Cacheable#cacheNames have nothing to do with Redis?

I annotated my service as follows @Cacheable(cacheNames = {"some"}, key = "{#req.some, #req.other, #req.property}") public List listSome(SomeReq req) { .. } It seems work and I saw these keys via Medis. (coupon is the value of…
Jin Kwon
  • 20,295
  • 14
  • 115
  • 184
0
votes
1 answer

Collect redis hotkeys frequency using lfu

I use redis with my springboot application. The memory policy is lfu and would like to see the statistics of hotkeys. One way is to connect to redis and run ./redis-cli --hotkeys But it would be better to monitor the top x hotkeys, and present it in…
Holm
  • 2,987
  • 3
  • 27
  • 48
0
votes
1 answer

Lettuce can't figure out multilevel replication topology

I have a situation where I have got the following setup: Redis A (Master) -> Redis B (Slave of A) -> Redis C (Slave of B). And I'mconfiguring redis template for this topology. When you specify a host of either master (A) or slave(B) in Lettuce…
omjego
  • 373
  • 2
  • 5
  • 15
0
votes
3 answers

Not picking properties for Redis from property file

I have configured Redis in my spring boot application and I put some properties for that in application.properties file. but its taking default properties (localhost:6379) here is…
Joyson Rego
  • 968
  • 2
  • 11
  • 29
0
votes
0 answers

Issue with @ConfigurationProperties while using spring-session with Redis

Not able to access the properties while using Spring-session with Redis. Auto wiring is not happening hence this object is null. Not sure what wrong I'm doing here. @Autowired private RedisSentinelProperties redisSentinelProperties; Without…
Nandeesh
  • 107
  • 5
  • 14
0
votes
1 answer

RedisSentinelConfiguration using spring.redis.sentinel.nodes with spring boot

Trying to configure spring boot application with spring-session and redis but having below issue. Not able to resolve it. Constructor threw exception; nested exception is java.lang.IllegalStateException: BeanFactory has not been injected into…
Nandeesh
  • 107
  • 5
  • 14