skip to Main Content

JEDIS/REDIS 'ON' Keyword or broken query?

Very new to REDIS, and having issues using JSON/Index/Query that is driving me crazy. Example struct public class MyType implements Serializable { { @SerializedName("myval") @Expose private Integer myval; @SerializedName("status") @Expose private String status; } I am easily using redis-stack, and…

VIEW QUESTION

Spring Boot Upgrade Redis – Null key returned for cache operation

After the spring 3.x upgrade Redis Cache gives Null key returned for cache operation spring-boot version: 3.2.2 <dependency> <groupId>redis.clients</groupId> <artifactId>jedis</artifactId> <version>5.1.0</version> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId> <exclusions> <exclusion> <groupId>io.lettuce</groupId> <artifactId>lettuce-core</artifactId> </exclusion> </exclusions> </dependency> Cachable Method: @Cacheable(value = "user", key = "#username",…

VIEW QUESTION

Redis – JedisPool vs JedisPooled

Looking at the Jedis Getting Started, I understand it's better to use connection pools to be threadsafe. To do so, I would need a JedisPool and a try-with-resources statement like so: try (Jedis jedis = pool.getResource()) { jedis.set("hello", "world"); }…

VIEW QUESTION

class file for redis.clients.jedis.JedisShardInfo not found

when I upgrade the jedis to version 4.2.3 in gradle.build: api "redis.clients:jedis:4.2.3" show error: /Users/xiaoqiangjiang/source/reddwarf/backend/retire/dolphin-common/src/main/java/misc/config/redis/RedisConfig.java:77: error: cannot access JedisShardInfo return new JedisConnectionFactory(redisConfig); ^ class file for redis.clients.jedis.JedisShardInfo not found this is the redis config: @Bean public JedisConnectionFactory redisConnectionFactory() { var…

VIEW QUESTION
Back To Top
Search