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
3
votes
1 answer

Cannot get Jedis connection, nested exception: Could not get a resource from the pool

I need some help regarding some issues I encounter when trying to connect to Redis using Spring Boot. I am using the following RedisConfiguration: @Component @Configuration public class SpringRedisConf extends CachingConfigurerSupport { …
user9934722
3
votes
1 answer

AWS Redis : JedisConnectionException: java.net.SocketException: Too many open files

I have configured redis using AWS Elasticache and connecting it through tomcat installed on AWS EC2. Following is my code: private JedisPool jedisPool = null; @PostConstruct private void initialiseJedisPools() { try { String redisHost =…
being_ethereal
  • 795
  • 7
  • 26
3
votes
2 answers

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

I meet this exception when using jedis with spring-data-redis in multi threading environment: org.springframework.data.redis.RedisSystemException: Unknown redis exception; nested exception is java.lang.ClassCastException: [B cannot be cast to…
zhaokun
  • 104
  • 2
  • 10
3
votes
2 answers

Jedis scan doesn't find any key

I would like to get all the keys from Redis cluster using Jedis with the following code snippet: public void testRedis() { String key = "*"; ScanParams scanParams = new ScanParams().count(1000).match("{*}"); String cur =…
Twi
  • 765
  • 3
  • 13
  • 29
3
votes
2 answers

How to set a key with value along with expiry using Java JedisCluster?

I am using JedisCluster, and I need to set a key with 1-hour expiry, now I am doing something like getJedisCluster().set(key,value); getJedisCluster().expire(key, 60 * 60); But I hope I can using a single command to reduce the round trip to…
JaskeyLam
  • 15,405
  • 21
  • 114
  • 149
3
votes
1 answer

org.springframework.data.redis.serializer.SerializationException

I have an application which reads data from redis. I am getting the below exception stack org.springframework.data.redis.serializer.SerializationException: Cannot deserialize; nested exception is…
darecoder
  • 1,478
  • 2
  • 14
  • 29
3
votes
3 answers

How to search by element value in the list of Redis cache?

We are using the redis cache and below the sample type of data we are storing LLPUSH mylist "abc" "xyx" "awe" "wwqw" Now I am want to search in the redis from Spring project. For example my Spring project class receives one element from some…
Bravo
  • 8,589
  • 14
  • 48
  • 85
3
votes
0 answers

how to set Jedispool configuration parameter with jedis cluster?

I'm using Ubuntu 16.04 version redis version 3.2.5 I've done a cluster in redis but my question is that whenever i set pool configuration in jedispool parameter it doesn't effect on that here suppose i set setMinIdle parameter to 2 but it can't…
patel
  • 59
  • 6
3
votes
1 answer

Cannot get Jedis connection, Could not get a resource from the pool

I am creating a Web Application and using Redis for data storage. I have used JedisPoolConfig (redis client-jedis version 2.9.0) . So when I test my application with help of Apache Jmeter with following configurations : Number of threads(Users):…
Vivek Bansal
  • 216
  • 2
  • 8
3
votes
0 answers

Spring/WebSocket/Redis based notification system - New thread for every subscribe?

I am implementing a Java Spring, Websocket, Redis based notification system (using Redis pubsub). Using Jedis library to work with Redis. I followed this guide to implement the pubsub model - check here But I am just worried about a few aspects of…
user1102532
  • 495
  • 6
  • 16
3
votes
1 answer

Cannot connect Locally to ElasticCache cluster on aws using Jedis Lib

We are trying to access de ElasticCache (Redis) on aws using a Java client that runs locally using Jedis lib. We were able to access the redis using redis-cli locally following the steps here. The problem is that when we try to connect to aws Redis…
3
votes
2 answers

When shut down tomcat i met [commons-pool-EvictionTimer] but has failed to stop it

Server version: Apache Tomcat/8.0.26 Server built: Aug 18 2015 11:38:37 UTC Server number: 8.0.26.0 OS Name: Linux OS Version: 2.6.32-642.3.1.el6.x86_64 Architecture: amd64 JVM Version: 1.8.0_60-b27 JVM Vendor: Oracle…
cmk1105
  • 41
  • 1
  • 4
3
votes
1 answer

How can we achieve Round-Robin implementation in Redis?

I am working on a scenario where i have multiple subscribers in Redis pub/sub implementation, but instead of broadcasting the message to all the subscribers i want to deliver a particular message to a single subscriber so that each subscriber will…
3
votes
2 answers

Redis keys are getting deleted automatically

We are using redis as caching. There were cases when some of the keys were getting deleted and we couldn't find the reason. I put redis keyspace/keyevent for CONFIG SET notify-keyspace-events KEgxe on this notification I am putting logs. But neither…
theGamblerRises
  • 686
  • 1
  • 11
  • 27
3
votes
1 answer

Why Redis keys are not expiring?

I have checked these questions but they did not help me to fix my issue. I am using Redis as a key value store for Rate Limiting in my Spring REST application using spring-data-redis library. I test with huge load. In that I use the following code…
prashanth-g
  • 1,183
  • 2
  • 13
  • 28