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
5
votes
3 answers

Does Jedis support async operations

I am using Jedis (java client) to commmunicate with Redis server. I have 3 Redis instances running on three different nodes. I want to "get" (read) some records from 3 Redis instances. I want to issue these "gets" (reads) in parallel, and then do…
sunillp
  • 983
  • 3
  • 13
  • 31
4
votes
1 answer

How to check consumer group already exists in Redis?

Currently I am looking for ellegant solution to check that consumer groups in Redis stream already exist. I have a few modules which connect to the same stream and read data from it. But they can start in different order and in case consumer groups…
Nazar Paruna
  • 121
  • 1
  • 7
4
votes
2 answers

Intermittent Redis timeouts

After migration to GCP and Cloud Memorystore, we have been getting intermittent Redis timeouts. We are connecting from Java Spring applications running in GKE. Prior to migrating to GCP we did not have these issues. Some key differences from old…
4
votes
0 answers

Redis Sentinel: Can connect to sentinel, but master-1; seems to be not monitored

I am configuring redis for my application and i am able to sucessfully connect for as single master setup, but when i am trying with sentinel, i am getting the error :Can connect to sentinel, but master-1; seems to be not monitored... Have checked…
snp
  • 41
  • 5
4
votes
2 answers

Transition from JedisPool to JedisCluster

My Application uses ElastiCache on AWS for caching purposes. Our current set up uses a basic Redis Cluster with no sharding or failover. We need to now move to a Clustered Redis Elastic Cache with sharding, failover etc enabled. Creating a new…
Pranav Kapoor
  • 1,171
  • 3
  • 13
  • 32
4
votes
2 answers

Java client can't connect to Redis Sentinel which is running on localhost

I have setup 3 Redis Server and 3 Redis Sentinel instances in my localhost. The servers are running at: 127.0.0.1:6379 // Master 127.0.0.1:6380 // Slave 127.0.0.1:6381 // Slave and the sentinels are running…
Shubham
  • 2,847
  • 4
  • 24
  • 37
4
votes
0 answers

How to model Data in Redis for values Complex Data structure?

I've taken a reference of the link : http://panuoksala.blogspot.com/2015/09/redis-many-to-many.html to developed below code. I've implemented some code, looks like nothing is achievable so far as Get User 1 groups: hget User:1 Groups Does not…
PAA
  • 1
  • 46
  • 174
  • 282
4
votes
2 answers

Caused by: org.springframework.data.redis.serializer.SerializationException: Cannot deserialize; nested exception is org.springframework.core.seriali

I'm developing Spring Boot + Spring Data Redis example. In this example, trying to use the @EnableRedisHttpSession and have taken a code reference from https://www.youtube.com/watch?v=_M8xoagybzU&t=231s. I developed the code and when I tried to…
PAA
  • 1
  • 46
  • 174
  • 282
4
votes
2 answers

org.springframework.core.convert.ConverterNotFoundException: No converter found capable of converting from type to type [java.lang.String] - Redis

I am using Spring Data Redis with the Spring Boot 2.0 example. In this example, I am trying to save the Customer data + Student data together. I'm not very sure how the data modelling happens here, but assuming its same like as Mongo DB (pure non…
Jeff Cook
  • 7,956
  • 36
  • 115
  • 186
4
votes
3 answers

Possible to use pipelining with Redis cluster?

Currently, our Redis set up involves Jedis + sharding. Scaling up and down involves adding/removing shards manually which is a lot of operational work. We are also heavily dependent on pipelining since we are doing a lot of writes per second. Hence,…
uohzxela
  • 613
  • 4
  • 14
  • 28
4
votes
1 answer

Getting multiple key values in single call form Jedis

I am trying to pass a list of keys to jedis and get their values in return. mget operation does this but it does not return key value pair it gives all values as a list. Is there any way we can know the key value pair in this query. OR it is…
viren
  • 1,073
  • 1
  • 17
  • 41
4
votes
2 answers

Can you have a single end point for Redis cluster(master/slave)?

I've started reading on how to set-up a Redis cluster and most of the bits of information make sense except the fact that I can't find what will be the common end point of the cluster that I spawn. Since I am considering using Sentinel to mitigate…
Alexandru Barbarosie
  • 2,952
  • 3
  • 24
  • 46
4
votes
2 answers

Jedis java.lang.Long cannot be cast to [B

I got "java.lang.ClassCastException: java.lang.Long cannot be cast to [B" while running this code: JedisPoolConfig config = new JedisPoolConfig(); config.setMaxIdle(10); config.setMinIdle(1); config.setMaxWaitMillis(30000); JedisPool jedisPool =…
Alessio Fiore
  • 467
  • 1
  • 7
  • 18
4
votes
1 answer

Setting JedisPoolConfig testOnBorrow to false

So, currently in my JedisPoolConfig bean, I have the parameter testOnBorrow set to true. It appears this retrieving resources slower. There was a scenario where Jedis took 30minutes to retrieve resources from Redis (calling methods…
Sulaiman Adeeyo
  • 485
  • 6
  • 19
4
votes
1 answer

Is updating a part of a value possible in Redis?

I have to use Redis and Jedis in a project, in order to access quickly to some data from generated keys. The value stored will be some complex Java objects. Is it possible to update only a part of this value, without getting it before ? For…
SebVb
  • 187
  • 1
  • 3
  • 14