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

Executing batch query with redis redisson client Hangs forever

I have an inventory list of Millions of records that I want to insert/merge in batches in Redis using Redisson Batch command.below is the codepublic void upsertInventoryInBatches(final...

View Article


Storing HSET using springboot RedisCacheManager

I am trying to create and delete a cache using RedisCacheManager with spring-boot and want to use HSET programmatically but am unable to do it. I am able to do it as a simple SET but not as HSET.This...

View Article


Redis search not found with composed label

I am trying to query by secondary index in my redis.When I query the redis with a single label it works, for example:FT.SEARCH LiveRooms-idx "@numUsers:[100 200]"But when I query with a composed label...

View Article

Redis cache implementation using Spring boot with hashing

I am trying to create and delete a cache using RedisCacheManager with spring-boot and want to use HSET programmatically but am unable to do it. I am able to do it as a simple SET but not as HSET.This...

View Article

Termination of running Redisson task

I've a situation where I need to terminate previously running tasks before starting a new one in Redisson. I've tried to use the cancel(taskId) method but it cancels a task that is scheduled to run not...

View Article


Spring Redis Does Not Delete the Stream Entries

I'm using the Redis Template and I want to delete the entries of the stream after processing it. I used the below code but it didn't delete from the Redis...

View Article

Combining Spring boot and redis with docker-compose: Connection refused

I am trying to do a basic docker container(s) with spring boot and MongoDB and redis. Mongo is just fine but connection can't be established between redis and spring boot although the configuration...

View Article

Image may be NSFW.
Clik here to view.

Run java project on Debian 10

I would like launch an java app on Debian, I installed jre, jdk and redis. But when I try to compile my project with javac, I have a 10 errors like this:src/main/java/worker/Worker.java:3: error:...

View Article


How to create Empty redis stream?

Is possible to create empty stream using spring redis data?Am trying to create rest endpoint to create just stream without data.Thanks,

View Article


Does REDIS support event listeners?

My USE Case:I want to have a key in redis and want a callback to some method (Using Jedis Java client) when the keys value changes or exceeds some threshold. Is it possible?

View Article

Spring Redis - get and deserialize list of objects stored as a single string...

For example, I have a serialized value like below stored as string in Redis, which represents a list of UserAction...

View Article

Load data from relational table to Redis [closed]

I have a relational table bearing key value pairs. I expect to keep these at REDIS for faster fetch while using at my code.Project tech Stack: Java, SpringBoot, RESTWhat would be the best approach for...

View Article

I cant run redis on Docker [closed]

I am trying use redis on docker, so ı am using this code on cmd:docker run -p 6379:6379 --name some-redis -d redisand ı got this exception: docker: error during connect: In the default daemon...

View Article


Spring Redis Annotation for different return types

I am using Spring Redis in my application and I annotated some methods with @Cacheable to cache the result and/or retrieve the result from cache if it exists.However, the return type of these methods...

View Article

Redisson RScoredSortedSet Objects Equality

I'm using Redisson library for my Java Redis client and currently implementing RScoredSortedSet data structure. I want to update the score of existing element object with the new one after changing...

View Article


BETWEEN (2): [IsBetween, Between] is not supported for Redis query derivation

I'm a beginner at spring data redis and I'm currently using Redis database as part of my application. And I am trying to query for records between two dates.Here is my Repository class.public interface...

View Article

How to customize SessionRepository in Spring Boot Redis

SafeDeserializationRepository is a class that I extended from SessionRepository. I'd like Redis to use this class rather than its SessionRepository. How can I implement it?class...

View Article


Consider marking one of the beans as @Primary, updating the consumer to...

Getting this failure while running.Consider marking one of the beans as @Primary, updating the consumer to accept multiple beans, or using @Qualifier to identify the bean that should be consumedWhat...

View Article

How does Spring session Data + Redis cluster handle sessions?

According to the Redis document,(link : https://redis.io/docs/manual/keyspace-notifications/)Events in a clusterEvery node of a Redis cluster generates events about its own subset of the keyspace as...

View Article

Why Getting NoClassDefFound error for JedisConnection when using Spring Redis

Hello when trying to use spring-redis i am getting java.lang.NoClassDefFoundError: Could not initialize class org.springframework.data.redis.connection.jedis.JedisConnectionexception when doing any...

View Article
Browsing all 2203 articles
Browse latest View live


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