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

Store object reference for multiple instances

Is there any ways which can store the object references that can be used by multiple instances ?I have an API in which it has an in-memory mapping named mapping where the object stored inside...

View Article


How to get total redis cache size metrics in spring boot

I have an application that runs in spring boot. Previously we have been using some java libraries for caching purposes. So we were able to get the cache_size from the spring boot metrics...

View Article


Java spring distributed lock with redis: different lock timeout for each lock

I need to create locks for each task execution, however different tasks can have differents locks timeout. I'm using Spring distributed lock with Redis, there's a snippet of my example...

View Article

class file for redis.clients.jedis.JedisShardInfo not found

when I upgrade the jedis to version 4.2.3 in gradle.build: api "redis.clients:jedis:4.2.3"show...

View Article

The URL 'redis://123456@cruise-redis-master.reddwarf-cache.svc.cluster.local...

When I upgrade the spring boot to 2.6.6 and Jedis version to 4.0.0. The spring boot application show error like this:23:24:20:970] [ERROR] -...

View Article


Jedis does not support returning PendingMessagesSummary

When I start the spring app write with Java 11, show error like this:[12:36:01:729] [ERROR] - com.dolphin.soa.post.common.mq.PendingMessageConsume.pendingMessage(PendingMessageConsume.java:36) - handle...

View Article

is it possible to use the newest jedis in spring project

when I force the jedis to use the newest verson 4.2.3 in build.gradle like this:resolutionStrategy { eachDependency { DependencyResolveDetails details -> if (details.requested.group ==...

View Article

how to fetch single attribute from redis cache spring boot?

how to fetch a single attribute from Redis cache spring boot?I want a response like this one {"answer": "FHFHFHFHFH" }but getting this one Please do let me know what should I do?...

View Article


Spring cache and Spring data redis

Spring cache + Spring redis: Spring provides a caching abstraction package spring-boot-starter-cache which basically provides method level annotations to cache data with @Cacheable, @Cacheput and other...

View Article


Redis (pub/sub) Subscribe to a Channel Using GET Request

I have two end points,first -> this is a post end point which receives requests and then puts the response in cachesecond -> reads the redis cache for a particular keynow a case occurs when the...

View Article

Best way to implement friends list into a database? MySQL

So my project has a "friends list" and in the MySQL database I have created a table:nameAnameBPrimary Key (nameA, nameB)This will lead to a lot of entries, but to ensure that my database is normalised...

View Article

Redis wait for key to be cached in GET request

I have two REST end-pointsPOST request, this request does some long running task and fills the key-value pair in the cache.GET request this gets the data from the cache corresponding to a particular...

View Article

I want to store array json to redis server Java

Please Please Help me I want to store array JSON to Redis server Need Help Pleasehttp://localhost:8585/api/redishome/redisGetBestTrainerBasedRating/101response{"message": "class java.util.ArrayList...

View Article


How to use GenericJackson2JsonRedisSerializer

I am using Spring Data Redis in order to cache some data using @Cacheable. I have multiple types of objects that need to be cached and I need the data from Redis to be in JSON format. I know that, by...

View Article

Spring Data Redis: Failed to convert from type...

I've been struggling with this exception from Spring Redis Streams when I try to convert a message from the Stream to my entity. I believe it is occurring due to an issue with the Redis Stream's...

View Article


Reload config changes across multiple instances without restarting the...

I have microservices built on Java 8 and Spring Boot.I want to refresh/reload configuration changes without restarting the service.I have decided to achieve this with the help of spring-boot-actuator...

View Article

Cannot find cache named 'xxxx' for Builder - ElasticCache AWS and Spring Boot

I am trying to connect my Spring Boot project to ElasticCache Redis in AWS. However, I get this error:java.lang.IllegalArgumentException: Cannot find cache named 'XXX' for Builder[public <Class...

View Article


Return all keys from jedis that match a partial key

In Redis cache I have 3 keys1111-2222-44441111-2222-33331112-2222-3333I have a partial key 1111, and I want to return the two keys 1111-2222-4444, 1111-2222-3333I have the following codepublic...

View Article

BLPOP, MULTI, WATCH, EXEC in reactive spring data

I need to implement something like long polling to redis list.In redis documentation I found special command called BLPOP. It retrieve data from list and wait for given amount of time when there are no...

View Article

Is it possible to use Redis Pub/Sub persisting latest message?

Currently, I have a project with public transport vehicles, I have to poll the GTFS-RT standard every x seconds and then I will receive the latest data for all vehicles. So to send this to the frontend...

View Article
Browsing all 2203 articles
Browse latest View live