Skip to main content
Stack Overflow for Teams is now Stack Internal: See how we’re powering the human intelligence layer of enterprise AI. Read more >
Filter by
Sorted by
Tagged with
-1 votes
0 answers
36 views

I'm working with Spring Boot Microservice project. For now i have used redis per microservice. I want to use redis cluster and have one microservice for caching data throw messaging system. I want to ...
Jeff's user avatar
  • 11
0 votes
0 answers
60 views

I am using redis-om-spring:1.0.4 with spring boot 3.4.10 for getting @Document support. I have some class like @Setter @Getter class Vehicle { @Id private String id; ...
Stanislav's user avatar
  • 451
1 vote
1 answer
92 views

I am setting up a Spring Boot 3 application (using Gradle and Java 17) with Redis Sentinel and the Lettuce client (non-reactive, with RedisTemplate). Our infrastructure team has provided a Redis ...
user31695579's user avatar
1 vote
1 answer
31 views

I have this cache @Cachable(cacheName = CACHE_MY_CACHE, key="#param", sync=true) public Object doStuff(String param){ ... } Which is using Redis in the background so it's distributed ...
David S's user avatar
  • 307
1 vote
0 answers
67 views

I’m using Redis OM Spring with a simple repository: @Document(value = "Marker", indexName = "MarkerIdx") data class RedisMarker( //other indexed @Indexed ...
Pawandeep Singh's user avatar
0 votes
1 answer
79 views

I am using spring session for redis for my oauth2 login. I have implemented a custom principal. @Data @NoArgsConstructor @JsonIgnoreProperties(ignoreUnknown = true) public final class ...
Allen Bastian's user avatar
-4 votes
1 answer
67 views

I want to use spring-boot-starter-data-redis with custom configuration properties: redis: host: localhost port: 6379 password: pass timeout: 5000 It's working only when I use: spring: ...
Peter Penzov's user avatar
  • 1,074
0 votes
1 answer
95 views

I am using spring-data-redis (version 3.5.0-M2). This is my entity class: @RedisHash("Embedding") @Data @NoArgsConstructor @AllArgsConstructor public class Embedding { @Id private ...
Akshit Bansal's user avatar
0 votes
0 answers
67 views

In my application im using spring session with redis as the data store. We track if a user is logged in/not based on the Session Destroyed event. Whenever we receive this event we will mark that ...
Supes's user avatar
  • 1
1 vote
0 answers
132 views

Here's my basic example setup: private final RedisTemplate<String, Object> redisTemplate; public void save(Object thing, Instant expiresAt) { redisTemplate.execute(new SessionCallback<...
OrangeDog's user avatar
  • 39.3k
1 vote
1 answer
569 views

I'm using LettuceConnection with a connection pool to connect my application to a Redis server. However, during load testing, I encountered a significant number of command timeout errors. Initially, I ...
Thanyares Permpongpaiboon's user avatar
0 votes
0 answers
41 views

Having Spring Cloud Config Server v4.2.1 with Redis Backend I'm trying to configure common (shared) properties which should be available for all client application. There is an approach clearly ...
Dmytro Bilorus's user avatar
2 votes
2 answers
122 views

I've got this exception. java.lang.ClassCastException: class java.lang.Integer cannot be cast to class java.lang.Long (java.lang.Integer and java.lang.Long are in module java.base of loader 'bootstrap'...
박수민's user avatar
0 votes
1 answer
25 views

When I am inserting object to redis, I am using spring annotation and when I try to get the object I am using redis template implementation. While doing so, I am getting exception. Below is the spring ...
Happs's user avatar
  • 125
0 votes
0 answers
34 views

I'm trying to migrate spring-data-redis 1.5.2.RELEASE to 2.3.12.RELEASE, but I'm finding that some methods in RedisCacheConfiguration are not in version 2.3.12.RELEASE I have the method ...
mf117's user avatar
  • 11
0 votes
2 answers
122 views

In my Spring Boot environment I was testing some API. From Service I am returning ResponseEntity. However when I try to collect its body in controller class, I am getting exception. Service class ...
JPG's user avatar
  • 1,273
0 votes
1 answer
145 views

Couldn't find any way how to integrate spring-data-redis with Microsoft Entra ID authentication. Seems RedisTemplate can work only with RedisConnectionFactory which doesn't support connection through ...
Gekster's user avatar
  • 111
1 vote
0 answers
49 views

`I want to activate Redis expiry events with Redis cluster having 3 nodes using spring-boot apllication Added all configurations CONFIG SET notify-keyspace-events Ex to verify CONFIG GET notify-...
Lucifer's user avatar
  • 11
1 vote
1 answer
226 views

I'm using Spring Boot with Redis caching and Jackson2JsonRedisSerializer for serialization. My RedisConfig is set up like this: @Configuration @EnableCaching public class RedisConfig { @Bean ...
Requiet's user avatar
  • 85
-1 votes
1 answer
130 views

I have the following class @NoArgsConstructor @Data public class MainList implements Serializable { private static final long serialVersionUID = 5679734271483606796L; @Id private String ...
user1555190's user avatar
  • 3,403
1 vote
1 answer
331 views

My application involves using Spring Session Redis to handle authenticated sessions across the application. Spring Session Redis is configured as-per the docs. @Configuration @EnableRedisHttpSession ...
nednella's user avatar
0 votes
0 answers
46 views

I’m facing an issue with Redis when checking if a key exists using CrudRepository.existsById(). Under normal conditions, everything works fine, and the key exists in Redis, but the problem arises ...
Lakshitha Samod's user avatar
0 votes
0 answers
189 views

I am trying to create a custom ReactiveRedisTemplate in my Spring Boot application with a specific configuration for String keys and Object values. My goal is to override the default ...
2shar's user avatar
  • 121
0 votes
1 answer
443 views

I want to store time series data daily in Redis (or try it out at least) I have a set up with lettuce and its working fine with the RedisTemplate. But I'm not sure where to begin with time series data ...
user1555190's user avatar
  • 3,403
-1 votes
1 answer
47 views

So im using redis template with spring and saving some data in redis like so: this.redisTemplate.opsForValue().set("cars:toyota:corolla", car, Duration.ofSeconds(48*60*60); ...
user1555190's user avatar
  • 3,403
1 vote
0 answers
54 views

I've implemented custom locking service with Kotlin and Spring Boot Webflux to prevent transaction of same user is processed at the same time. the second transaction should loop until the first one is ...
DDDDDD's user avatar
  • 11
1 vote
4 answers
147 views

I am using redis as database. Here is the example of key and value I am using. Both key and value are of type string. Key - shipping_rate:64:MNR:Home-Delivery. It is combination of 3 fields like ...
achowdhury's user avatar
0 votes
0 answers
133 views

I am using Redis Embedded in my Java Quakrus tests with the following dependency: <dependency> <groupId>it.ozimov</groupId> <artifactId>embedded-redis</artifactId> <...
Dev-tools's user avatar
0 votes
1 answer
1k views

In our Spring boot apps, we want to use Redis pub-sub to publish messages to a channel that in normal conditions has around 500 listeners. But on certain rare times/days, the listeners can be as large ...
RaRa's user avatar
  • 306
-2 votes
1 answer
146 views

I have redisTemplate that is initialized with connectionFactory and has enabled transaction support. The problem is that redisTemplate.multi(); doesn't seem to create transaction. redisTemplate.multi(...
idix's user avatar
  • 53
0 votes
1 answer
249 views

I am working on a spring web application where I am implementing the SSO using spring security and I am using the redis as the database to persist the session data. I got this part working, however, ...
coder's user avatar
  • 408
1 vote
0 answers
47 views

I am curious as to why Spring Data Redis does not provide support for custom deleteBy methods? For this reason, we have to use a workaround to perform these methods: a service method that calls the ...
Skrynfor's user avatar
1 vote
1 answer
216 views

I have a Spring OAuth Client (BFF), between a Public Angular Client, and an Auth0 Authorization server. When I login, the BFF correctly persists the session to Redis (and with it, the Authorized ...
Sachin's user avatar
  • 569
0 votes
1 answer
357 views

Is is possible to return plan java object and not Document<K, V> using lettucemod with Redis Stack? The API seems to strange, as I understand this: StatefulRedisModulesConnection<K, V> ...
adamzrk's user avatar
0 votes
2 answers
193 views

We have an in-transit encryption enabled AWS Elasticache instance. We're trying to access the instance from our Spring boot microservice with Spring data redis SSL enabled. LettuceClientConfiguration ...
Aki T's user avatar
  • 666
1 vote
1 answer
923 views

Im trying to solve the CROSSSLOT Keys in request don't hash to the same slot when using @RedisHash on an entity class having more then one @Indexed on varaiables. Is there any way to store the hashing ...
herman shafiq's user avatar
1 vote
0 answers
101 views

I've been building a Spring Auth Server the past month or so. It can create a Session ID and CSRF Token, so now I am starting to try and take everything out of in-memory to an external Redis Cache (...
Sachin's user avatar
  • 569
1 vote
1 answer
594 views

We are using springboot 3.2.5 and spring data jpa to insert data into RDBMS. Now there is a requirement to ensure duplicate data does not get inserted into RDBMS. So we have to first check if data ...
user2176576's user avatar
0 votes
1 answer
137 views

I have a data model created with Redis-OM-Spring as follows: @Data @Document public class RedisOAuth2Authorization implements Serializable { @Indexed @NonNull @Id private String id; ...
Suvin Nimnaka Sukka's user avatar
0 votes
0 answers
276 views

I need to obtain a lettuce Redis client to perform xautoclaim. xautoclaim is not exposed in Spring Data Redis. I thought about obtaining client variable from LettuceConnectionFactory using reflection ...
pixel's user avatar
  • 26.8k
0 votes
2 answers
477 views

To use ttl for hashkey field, I want to use hexpire, the command applied to the latest redis, but I wonder if there is a reflection plan in spring-data-redis. I used redisson before, but I support ...
윤태성's user avatar
0 votes
0 answers
190 views

I'm trying to implement Redis caching in my Spring Boot project to cache user profile information retrieved by the getProfileByUsername method in the UserService class. However, encountering a ...
Jabed Iqbal Joy's user avatar
1 vote
0 answers
644 views

I have enabled my application to use the actuator/health endpoint and kept getting the status as 'DOWN'. After checking the full health endpoint details, I can see that I am getting two reponses for ...
amasuKAKAROT's user avatar
2 votes
1 answer
774 views

I have implemented a redis cache in a spring boot project. Below is the code used to cache the data returned by the method. when executed first time , it stores data into cache successfully. EDIT @...
Muddassir Rahman's user avatar
0 votes
1 answer
147 views

When I use Spring rest repository + spring security + spring session + redis,the type org.springframework.hateoas.Links cannot (de)serialization,the stacktrace as follows 2024-06-27T10:11:45.816+08:00 ...
douzengrui's user avatar
0 votes
1 answer
293 views

Line 55 expects map.get(name) to return a value of type Member instead of LinkedHashMap, When using CompositeCodec Specify mapValueCodec as TypedJsonJacksonCodec. The getMemberByName method will throw ...
xuleilei's user avatar
0 votes
3 answers
957 views

I've a redis service on upstash.io but not able to connect to it from my spring boot application This is my redis config @Configuration public class RedisConfig { @Bean public ...
Dhananjai Saini's user avatar
0 votes
0 answers
49 views

I want to implement a tag cloud. Tag information is stored in Redis: redisTemplate.opsForValue().set(tagKey, tagName); The usage count of the tags is also stored in Redis, using a sorted set: ...
Ted Han Neversummer's user avatar
1 vote
0 answers
589 views

Hello and thanks in advance if you'll have time to read and maybe answer to my question. I have an already working SpringBoot 3.2.4 app that is communicating with an Angular client via websocket ...
ad3luc's user avatar
  • 312
0 votes
1 answer
194 views

While using Redis Stream, I encountered an issue where the consumer faced an exception while consuming, leading to the cancellation of subscription by the StreamMessageListenerContainer. I found that ...
He Jin's user avatar
  • 1

1
2 3 4 5
21