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
2 answers

Jedis Changing the semantics of Redis?

So, Redis specify the zrange (and related sorted set commands) as an ORDERED set of results (a list without duplicates perhaps?). Why then the zrange (and related APIs) on Jedis (Official and Recommended REDIS client) return a Set??? Which has, by…
3
votes
0 answers

With Jedis in Java, how can it choose the correct alias for SSL if you have multiple keys in your keystore?

I'm trying to connect to Redis using TLS, and it works fine for a keystore that has only a single cert inside of it. The problem is, if I have multiple certs imported to my keystore, how does it know to choose the correct alias to pull the correct…
NPC
  • 31
  • 1
  • 3
3
votes
1 answer

JedisConnectionException Read timed out intermittently

My application is running on ECS cluster and Redis is ap part of docker on ECS . The application runs fine for a week or more but all of a sudden it started throwing Time out exception . The issue reported in below block of query api.query("MATCH…
Atharv Thakur
  • 671
  • 3
  • 21
  • 39
3
votes
1 answer

Jedis error Could not get a resource from the pool

I'm currently using jedis version 2.9.0 in my maven webapp. It consists in a loop that retrieves data for caching every five minutes. For that purpose, I'm creating a jedispool on app Scheduler class when the whole app starts the execution. It runs…
mraz
  • 195
  • 10
3
votes
1 answer

ERR syntax error while performing SCAN operations in Redis using Spring Data Redis

While working with Redis using Spring Data Redis, I tried to scan hash data in my server (similar to HSCAN in CLI) - Cursor> scan = redisTemplate.opsForHash().scan("student", new…
shreyas.k
  • 181
  • 1
  • 2
  • 15
3
votes
1 answer

Redis how to store values as json

I am using redis as my caching store in my application. For that i am using the following redis configuration: @Configuration @EnableCaching public class SpringRedisConfig { @Bean public JedisConnectionFactory connectionFactory() { …
KayV
  • 12,987
  • 11
  • 98
  • 148
3
votes
1 answer

@Valid does not trigger validation in @Repository

I'm writing unit tests to check if the input validation works in my Spring Repository, but it doesn't look like it does. Keeping it simple, I have a Repository class: @Repository public class CustomerRepository { // Java client for Redis, that I…
AdrienW
  • 3,092
  • 6
  • 29
  • 59
3
votes
1 answer

How are cache misses handled by spring-data-redis multiGet?

I am using a Redis cache (via the Jedis client), and I would like to use ValueOperations#multiGet, which takes a Collection of keys, and returns a List of objects from the cache, in the same order. My question is, what happens when some of the keys…
kenny_k
  • 3,831
  • 5
  • 30
  • 41
3
votes
1 answer

Spring Auto Configuration prioritization between Lettuce or Jedis

I want to use Lettuce as a Redis Client, which is the default dependency for spring-boot-starter-data-redis-reactive. However I am inheriting Jedis as a dependency from another component written as pure Java code (no Spring). This is resulting in a…
3
votes
1 answer

How to clean redis cache through java program?

I have spring boot project. I am using redis as cache manager. I want to clear redis cache with java program. I want to call one api and it will clear my cache. I already know about redis-cli flushdb command. I am not expecting command line code.…
S Khandelwal
  • 199
  • 2
  • 13
3
votes
4 answers

Converting a Map to a Value type with Jedis

So, I have a value type : class Session { long createdAt; List postIds; } Using the jedis client(3.0.0-m1 is that matters), I am currently performing an hset to create the entries and hgetAll to retrieve all the key-values: private…
Naman
  • 27,789
  • 26
  • 218
  • 353
3
votes
3 answers

InResponseToField error after Spring Session upgrade

We are not able to upgrade from Spring session 1.3.3 to 2.1.2 due to problems with Spring Security SAML. It seems that Spring Security SAML cannot verify the InResponseToField value because two session IDs are being created: Caused by:…
Erlend Garåsen
  • 161
  • 1
  • 9
3
votes
0 answers

Spring Data REDIS with JEDIS connection terminated after few minutes

I have web application Spring+Spring MVC in Eclipse (OS WIN 10). I have the following mavenized…
mary
  • 43
  • 3
3
votes
3 answers

Memory occupied by individual key in Redis using Jedis?

How do we find memory occupied by individual key in Redis using Jedis?jedis.info("memory") provides only the total memory used by the redis server.
3
votes
2 answers

Caused by: org.springframework.data.mapping.PropertyReferenceException: No property findAll found for type User - Redis

I am new to Redis and using Spring Boot + Spring Data Redis example. In this example, I used the QueryByExampleRedisExecutor on repository method and used the Example API to do the custom query. The following is the KEYS present in the Redis…
Jeff Cook
  • 7,956
  • 36
  • 115
  • 186