Quantcast
Channel: Active questions tagged redis+java - Stack Overflow
Browsing all 2203 articles
Browse latest View live
↧

How to use @BeforeAll in my tests of io.quarkus.redis.datasource.RedisDataSource

I have a set of test classes in Quarkus that tests my app classes which use io.quarkus.redis.datasource.RedisDataSourceI want to run @BeforeAll on each test class to reseed the redis db with known...

View Article


NOAUTH Authentication required spring-boot-data-redis+Realease Lettuce+Redis...

when I restart redis causejava.util.concurrent.ExecutionException: io.lettuce.core.RedisCommandExecutionException: NOAUTH Authentication required.Why is this a problemuse version like...

View Article


Multiple instances of springboot running on same database - best way to...

We have an environment where we run multiple spring boot web services all linked to a single database schema. All of them are registered to Eureka and a gateway is responsible of accepting client...

View Article

redis.clients.jedis.exceptions.JedisConnectionException:...

While trying to use Jedis.get(key) while accessing the Redis using Jedis I'm getting this error.redis.clients.jedis.exceptions.JedisConnectionException: java.net.SocketException: Broken pipe (Write...

View Article

How to subscribe redis key space event with spring

My EnvironmentMac Ventura 13.6.3Temurin 17SpringBoot 3.2.1org.springframework.boot:spring-boot-starter-data-redisredis cluster running on local machine. (localhost: 7001, localhost: 7002, localhost:...

View Article


Jedis Issue - "Failed to connect to any host resolved for DNS name."

Whenever I try to connect to my Redis server from my Java application using Jedis, I get JedisConnectionException: Failed to connect to any host resolved for DNS name. The Java application runs on the...

View Article

Jedis : Could not get a resource from the pool

BackgroundOur application uses Jedis-2.2.1 and connects to Redis-2.6, here's how I get jedis resource : protected static JedisWrapper getRedisUserWrite(String UDID) { if (redisUserWritePools.get(0) ==...

View Article

Redis - Multiple caches with different TTL

I'm working with Java 17 / Spring and this application.yml is working well.The problem is I need a different time-to-live for each cache:10s for cache120s for cache2spring: cache: cache-names: cache1,...

View Article


Unable to connect to Redis | Spring Boot

I've a redis service on upstash.io but not able to connect to it from my spring boot applicationThis is my redis config@Configurationpublic class RedisConfig { @Bean public LettuceConnectionFactory...

View Article


@RedisDocumentRepository with custom serializer

I am trying to use Redis OM Spring (@RedisDocumentRepository) and I wanna use Jackson as a serializer/deserializer for my objects.By defualt it uses org.json... ChatGPT was suggesting to override the...

View Article

java.lang.IllegalAccessException: class...

I was trying to implement Redis caching for SpringBoot app which exposes Rest API. Important code snippets and maven build file enclosed.Start-up...

View Article

Redis/Jedis - Delete by pattern?

Normally, I get the key set then use a look to delete each key/value pair.Is it possible to just delete all keys via pattern?ie:Del sample_pattern:*

View Article

Not able to deserialise the Redis data in Spring Boot application

Recently I migrated my Spring Boot application from Java 8 to Java 17. Everything is working fine, except reading the data back from Redis.I've a populated Redis data which was earlier feeded using a...

View Article


Redis - How to configure custom conversions

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

View Article

Can Spring Session be turned off in Spring Boot 3?

In my Spring Boot 2.7.4 project, I use Spring Session with Redis by including these...

View Article


Redisson fails to connect with SSL, Lettuce does

We're trying to secure our ElastiCache/Redis connection with SSL. Part of this is an IT test, against a SSL secured Redis docker container. The container has all necessary certificate and key files,...

View Article

use jedis for redis,lpush method was waiting for long time

I used 10 threads to execute the jedis.lpush method in while, and for 2 days all threads were runnable and blocked on jedis.lpush.It seems that none of the timeout methods set by jedis are...

View Article


Redisson fails to connect with SSL, Lettuce does

We're trying to secure our ElastiCache/Redis connection with SSL. Part of this is an IT test, against a SSL secured Redis docker container. The container has all necessary certificate and key files,...

View Article

When attemping to cache book : Java 8 date/time type `java.time.LocalDate`...

When I'm trying to cache book in redis I'm running into this problem.Config classes:@Configuration@EnableCaching@RequiredArgsConstructorpublic class CacheConfig { private final ObjectMapper...

View Article

Redisson RMapCache adds special characters before and after keys

I'm using Java springRedisson 3.16.0 cache client. I'm using MapCache to store key and value. Below is my code:redissonClient.getMapCache("mapNamee").put("key", "value", Long.valueOf(6),...

View Article
Browsing all 2203 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>