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

Spring Data Redis Repository - save() exectues DEL operation which leads to...

I began using Spring Data Redis, with the high level Repository abstraction.My application has many threads which read and update entities at the same time.To my amazement, when updating an entity...

View Article


How to use in memory and redis cache in the same project?

Have two classes, both annotating with @Cacheable (org.springframework.cache.annotation.Cacheable), either methods or class. I think it doesn't matter for this question.Example:@Cacheable(value =...

View Article


Getting Connection refused from redis cloud spring boot integration

I am getting below errororg.springframework.data.redis.RedisConnectionFailureException: Unable to connect to Redis] with root causejava.net.ConnectException: Connection refusedbelow is my...

View Article

Redisson live object cant be deleted in micro service system

Im using redisson java with redis live object to write data to redis server.One micro service is creating live object and also set expiry to that object, and other is using that live object to execute...

View Article

[name=Redis, majorVersion=6]; user must register resolver or explicitly set...

After successfully creating datasource for redis in wildfly, I am now trying to make connection to redis from my spring project. I am quite new to Spring, naturally I have stumbled upon some issues.My...

View Article


Redis spring data message listener for mykey with generic command filter

I am trying to add a specific pattern for my key in redis spring data listener but its not working. Can anybody help me to advice how can I achieve the listener only for a specific command?Below is my...

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

StringRedisSerializer converts String to byte[],But why am I seeing strings...

[enter image description here](https://i.stack.imgur.com/XCruM.png)why am I seeing strings not byte[] in the redis client?Isn't it the role of StringRedisSerializer to convert strings to byte[]?What is...

View Article


Why am I getting "NOAUTH Authentication required" with Spring Boot?

I have a simple redis server running with a password. I want to talk with it from my spring boot app. I look here and see there is a spring.redis.password so my application-local.yml (running with...

View Article


how to make the String readable in redis?

public class RedisStorage { int usersPerSeconds = 0; int generateUserPaid; int totalUsersPerSecond = 20; private RedissonClient redissonClient ; private RKeys rKeys; private...

View Article

How does data reading works in redis in terms of master slave server

Config config = new Config() MasterSlaveServersConfig masterSlaveConfig = config.useMasterSlaveServers() masterSlaveConfig.setMasterAddress("127.0.0.1:6379")...

View Article

Is it possible to find keys which are on different shards using Lettuce using...

I am using Spring Data Redis in my API. I am trying run the following command through Java:Set<String> union = redisTemplate.opsForSet().union(ids);which is causing CROSSSLOT Keys in request...

View Article

Image may be NSFW.
Clik here to view.

Can't start Redis from java application

I just pulled the project on my mac(Intel i9) from my work repository and tried to run integration tests but getting an error:java.lang.RuntimeException: Can't start redis server. Check logs for...

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

required a bean of type...

I have a project which uses spring boot which uses spring-boot-starter-data-redis to manage distributed session, which was running fine.I tried to migrate to spring boot 3, i was getting the below...

View Article


How to test interactions inside of a Futures `whenComplete` method

I have a class thats a wrapper around the Lettuce Redis client that puts objects into redis and records a few metrics when the future completes inside of its whenComplete. The class under test looks...

View Article

Redis Lettuce Client Command Latency Event Wasn't Retrieved in the subscriber

Command latency event wasn't retrieved in the subscriberThe code implementation of command latency monitoring using Letuce Redis client in Spring Boot MVC app didn't collecting any command latency...

View Article


Image may be NSFW.
Clik here to view.

Problems with test Redis cache with @MockBean

I'm trying to test an implementation of cache with redis and when I debug, I could check the repository is null and I don't know if it's ok with it.But the test fails:INFO...

View Article

Distributed cache and filesystem storage [closed]

I'm looking for a distributed cache that uses or can use the filesystem.The idea is to share this cache between the different instances of my application and to use disk storage instead of memory...

View Article

Distributed queue with delayed tasks

We need to implement a distributed queue with delayed tasks (DelayedQueue) for multiple instances of a Java service.For example, a specific task needs to be executed after 1 minute; it is placed in the...

View Article
Browsing all 2219 articles
Browse latest View live


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