Questions tagged [jedis]

Jedis is a small free client for Redis, written in and for Java.

From its GitHub repository:

Jedis is a Java client for Redis designed for performance and ease of use.

Resources

868 questions
11
votes
3 answers

The current connections count keeps increasing in my Elasticache Redis node

I am using Jedis in a tomcat web app to connect to an Elascticache Redis node. The app is used by hundreds of users in day time. I am not sure of this is normal or not, but whenever I check the current connections count with cloudwatch metrics, I…
addonis1990
  • 489
  • 1
  • 6
  • 17
11
votes
1 answer

Redis : Is there a limit to the number of keys that i can store?

First the context, im trying to use Redis as an in-memory store backed with persistence. I need to store large number of objects (millions) in a Redis Hash. At the same time, i don't want my redis instance to consume too much memory. So i've set…
Arun Jolly
  • 342
  • 1
  • 3
  • 12
10
votes
4 answers

ClassNotFoundException while JedisClient initialization in Spring Boot 2.5.4 application

I have a Spring Boot 2.5.4 application in which I would like to add Redis and access it via Spring Data Redis. My current configuration looks like this: pom.xml
Martin
  • 1,139
  • 4
  • 23
  • 49
10
votes
1 answer

Is there a read only connection in Redis?

I searched google for this but didn't get a clue. Suppose a user has full read/write access to Redis database. I am wondering, is there any way to connect to database in read-only mode?
10
votes
2 answers

example retrieving redis values as stream in java

I have a redis key/value store holding blobs (size in the tens of MB), and the jedis client I am using in my java application returns a byte array from the jedis connection's get method. Currently, I have to wrap the result in a stream in order to…
brendon
  • 363
  • 3
  • 11
10
votes
1 answer

REDIS/jedis update scores of all members in a sorted set

What's the best way to increment a medium size sorted set in REDIS? (Preferably with java driver JEDIS) Set has about 100-200K records in it. I want to increment their score by a given double number. before 1 a 2 b 3 c after (increment by 1) 2 a 3…
Onur Günduru
  • 451
  • 4
  • 14
9
votes
2 answers

Automatically reconnect Storm Topology to Redis Cluster on Redis restart

I have created a Storm topology which connects to Redis Cluster using Jedis library. Storm component always expects that Redis is up and running and only then it connects to Redis and subscribes the events.Currently we use pub-sub strategy of…
Anand Jain
  • 603
  • 7
  • 20
9
votes
1 answer

Jedis key expiry

I am trying to understand redis/jedis with spring. I am stuck somewhere where I can't able to expiry my key after certain period of time. Can anyone please help ? public class SessionCacheRepositoryImpl implements SessionCacheRepository { …
Happy
  • 169
  • 1
  • 4
  • 10
9
votes
0 answers

Performance problems with Redis/Spring Data Redis

I have a performance problem in my Spring Boot application when it's communicating with Redis that I was hoping someone with expertise on the topic could shed some light on. Explanation of what I'm trying to do In short, my application I have 2…
fridberg
  • 161
  • 4
  • 14
9
votes
1 answer

Cannot connect to redis using jedis

Redis version: 3.2.0 Jedis version: 2.8.1 Below is my java code for connecting to redis: public class TestRedis { public static void main(String[] args) { String host = args[0]; int port = Integer.parseInt(args[1]); try…
Burujia Bartoli
  • 91
  • 1
  • 1
  • 2
9
votes
2 answers

Should I read from a Redis Cluster slave?

We have a cluster configuration for Redis used as cache. Now due to the normal pattern of write to master and read from slave (with other databases), we are trying to do the same thing with Redis cluster. After some investigation we found that none…
mayank vats
  • 444
  • 2
  • 6
  • 17
9
votes
1 answer

Redis cluster performance - high timeout rate on low load

See strange behavior of redis cluster, which works totally fine on big load and starts to run with 50% timeout rate and unstable response times on low load. We have same patter each day on periods of low load. Any ideas what could cause such a…
Dmitry Spikhalskiy
  • 5,379
  • 1
  • 26
  • 40
9
votes
1 answer

How to Convert SQL table into Redis Data

Hi I am new to redis and want some help over here. I am using java and sql server 2008 and redis server. To interact with redis I am using jedis api for java. I know that redis is used to store key value based things. Every key has values. Problem…
Mr37037
  • 738
  • 2
  • 13
  • 29
9
votes
5 answers

Can't run Jedis example: JedisConnectionException: Could not get a resource from the pool

I'm trying the Jedis (Redis for Java) "Basic usage example" from https://github.com/xetorthio/jedis/wiki/Getting-started but I'm getting the following error: Exception in thread "main" redis.clients.jedis.exceptions.JedisConnectionException: Could…
Uwat
  • 246
  • 1
  • 2
  • 7
9
votes
2 answers

Spring data Redis HGETALL operation

I am using Redis as data store for my spring web application and using Spring Data-Redis as my client to interact with Redis. I am using HashMap to store one my objects having multiple fields. I am able to put all the fields into Redis at once using…
user2508067
  • 95
  • 1
  • 6
1 2
3
57 58