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

Multiple key pointing to single value in Redis (Cache) with java

I want to store multiple keys with single value using jedis (Redis cache) with java.I have three keys like user_1, driver_10, admin_5 and value = this is user, and I want to get value by using any one...

View Article


How do I get all the keys from a redis cache via Spring Boot with Spring Data...

I am trying to get the entries in a Spring Boot Cache backed by Redis How do I get all the keys from a redis cache via Spring Boot? uses 1.x of Spring-Data-Redis and the current version uses...

View Article


Java job scheduler based on Redis?

I am looking to replace Quartz as a job scheduler in our project. We already use Redis with cluster support as a distributed cache layer and we thought that maybe we could use Redis for job scheduling...

View Article

What's the difference between implementing Redis purely vs implementing with...

I am using Redis as the in-memory data store for caching purposes in my spring boot application. At the moment I have already implemented the Redis support with basic CRUD functionalities for the...

View Article

Spring Redis Stream consumer stops consuming messages (Address already in use)

I tried to test redis streams with spring-data-redis.I've implemented two aplications - first one adds records to the stream, second one consumes messages from the stream.It works, but after some time...

View Article


Nifi+Redis generate a strange cache key/ val - how to properly serialize/...

My Nifi processor implementation is generating a strange cache key and value, something like '\xac\xed\x00\x05t\x00\x06' is prepended to each key/ val.For example, inserting 'key':'val' generates...

View Article

Image may be NSFW.
Clik here to view.

Pipelining in Redis Cluster | Lettuce [closed]

Let's say that I have a Redis cluster that looks like this ->Problem ->When I a run a hmset on a big Map<> it often gets timed-outProposal ->I was thinking of breaking my Map into...

View Article

java.lang.ClassCastException: [B cannot be cast to java.lang.Long [closed]

I am performing some big number of operations on redis at a time concurrently. It is giving this ClassCastException JedisLock jedisLock=createJedisLockFromKey("lock2"); jedisLock.acquire(); //getting...

View Article


Spring Redisson Sentinel Error - At least two sentinels are required

I am using Sentinel mode for Redis. I am using Redisson Client version...

View Article


Redis java.util.NoSuchElementException: Pool exhausted

java.util.concurrent.ExecutionException: java.util.NoSuchElementException: Pool exhausted - Unable to get key(xxx), Exception: java.util.NoSuchElementException: Pool exhaustedI got this error when I am...

View Article

How to use consumer groups with Spring Data Redis for Redis Streams (keep...

I'm trying to use Spring Data Redis to consume a Redis Stream using consumer groups, but keep getting the following exception:Caused by: io.lettuce.core.RedisCommandExecutionException: NOGROUP No such...

View Article

Where should I put @Qualifier when I have two @Beans?

So I have two beans for redis connection, and I am trying to specify certain times to use redisB. If I am correct, I need to put @Qualifier("redisB") somewhere, but I am not sure where to put it.First...

View Article

Unicode returning weird character in StringRedisTemplate java from redis

I am trying to store portugese word 'como você está' for a key in redis. Value is set in redis in unicode format 'como voc\x88 est\xa0184\' in redis. But while fetching the value through...

View Article


Configuring Spring Data Redis with Lettuce for Redis master/slave

Using Lettuce, how do we configure Spring Data Redis running on host x at port 6379 and slave running on the same or different host but at port 6380?

View Article

How to build rising posts scenario in social media [closed]

I'm building social media platform where users can like and comment on post. I want to implement rising posts features. For example, when more and more users like and comment a post, it should be...

View Article


Is there any solution to remove messages from redis stream 1 by 1 from...

We are using redis stream in our application. we have 2 docker service for the same. Service1(Java) publishing data to stream & Service2(C++) consuming that data & after consuming we are...

View Article

Why I am getting null pointer exception when using hashoperations in redis...

public class CacheLoadTester { String c; private int redisPort=6379; private String redisHost="localhost"; private String redisDir="J:/resources"; private String redisSize="128M"; private String...

View Article


How to make one subscriber to process message (consider having more than one)...

In my project , I've created a simple pub/sub topic with radisson (https://github.com/redisson/redisson) . Publisher will publish some message and there will be multiple subscribers running on...

View Article

Redis Cache Query using multiple criteria

I have price data from ecommerce like follwoing. Each row is considered as an Domain object lets say PriceInfo+-----------+----------+-------+------------------+| ProductId | Provider | Price | Time...

View Article

jedis:Attempting to read from a broken connection

redis.clients.jedis.exceptions.JedisConnectionException: Attempting to read from a broken connectionat redis.clients.jedis.Connection.readProtocolWithCheckingBroken(Connection.java:274)at...

View Article
Browsing all 2203 articles
Browse latest View live


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