spring-data-redis Questions

5

In spring-data-redis, How do we need configure custom converters that can be auto-wired/injected from Spring boot application or configuration. I read about @ReadingConverter and @WritingConverter...

5

Solved

I am new to Reactive Programming. i need to connect to Redis to save and get some data. The redis instance is present in cloud. Am using Lettuce Connection factory to establish the connection. whe...

4

Solved

I want to use spring-data-redis to caching data in my spring boot app.But it always says cast exception.I googled for some time but have no ideas.Please help me.thanks,any suggestions are greateful...
Strophic asked 5/4, 2017 at 2:52

3

With Spring Boot 2.1 I am defining a RedisCacheManager bean in a configuration file, with Java configuration. Everything works correctly but I would like sometimes to disable it, for instance in th...

3

I've an Azure Cache for Redis - Premium and Cluster enabled. I've been trying to connect to that Redis using spring-boot-starter-data-redis (spring boot version: 2.3.4.RELEASE, Java version: 11) an...
Judaism asked 9/10, 2020 at 21:16

1

Solved

We are using Redis cache for storing data in cache in our application. We are directly using @Cacheable to allow caching and using redis underneath to cache. Below is the config Redis Config - @Con...
Abyss asked 8/9, 2023 at 21:39

8

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<String, Object> t...
Middendorf asked 9/4, 2017 at 4:57

5

Solved

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 D...
Pelite asked 19/4, 2017 at 10:2

3

Solved

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...
Tibetoburman asked 17/1, 2017 at 9:46

4

Solved

I have a Spring Boot 2.5.4 application in which I would like to add Redis and access it via Spring Data Redis. My current configuration looks like this: pom.xml <?xml version="1.0" enc...
Gluey asked 8/9, 2021 at 20:9

4

I am running a batch job for every 5 minutes and I don't wanna other nodes to run the same job hence I am using Jedis lock to lock an object for 5 minutes. So that other node won't get the lock if ...
Bruin asked 11/12, 2017 at 23:42

1

We are upgrading from spring boot version 1.5.2 to 2.0.0. I have found that spring data redis is using lettuce as default and requires no connection pool management and uses only single underlying ...
Digitalin asked 3/8, 2018 at 0:52

5

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 concer...
Stalder asked 11/9, 2016 at 4:10

4

I am trying to listen on a redis stream and process the message as and when they arrive. I am using async command and I expect the message to be pushed instead of being pulled. So I don't think a w...

2

I am following RetwisJ tutorial available here. In this I don't think Redis transactions are implemented. For example, in the following function, if some exception occurs in between, the data will ...
Unamerican asked 9/2, 2014 at 20:19

1

Solved

I am new to caching thing and learning some different solutions for my spring boot app. I was looking at Spring Cache and it is simple caching mechanism (that was what I look for) than I saw redis ...

4

Solved

I have a Spring boot app written in Kotlin where I would like to enable caching in Redis. I'd like to have the objects stored as serialized JSON and ideally don't want to have to register each type...
Rapier asked 10/9, 2018 at 20:51

4

Solved

I am using redis in spring boot 2.0. I wanted the data stored in redis to be set to TTL. So I searched to find a way, and I wrote the following example code. Person.java @Data @Builder @Redis...
Feebleminded asked 2/6, 2019 at 11:10

2

I have a need to provide a secure connection to Redis from my microservices. So if I want to add the ability to support authentication so that a client can send an AUTH command with a password. Se...
Catalan asked 12/10, 2016 at 20:45

1

Solved

I am using Spring Session Redis Data (configured with autoconfiguration, no customizations so far) which defaults to using FindByIndexNameSessionRepository as the SessionRepository implementation. ...

7

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 --- [ restarte...

2

My question is, in distributed web application is it possible to get the valid sessions from Redis Store using RedisOperationSessionRepository. (I mean I don't want to write explicit code for putti...
Uyekawa asked 10/3, 2016 at 16:23

3

I am working with Spring data Redis and have the following repository: public interface MyClassRepository extends CrudRepository<MyClass, String> { } When I call findAll(Iterable< Strin...
Laliberte asked 19/12, 2017 at 8:43

1

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 spr...

4

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 RedisStandal...
Kings asked 20/12, 2017 at 13:32

© 2022 - 2024 — McMap. All rights reserved.