Redisson JAR execution: ClassNotFoundException: org.redisson.RedissonReference
Spring Boot v2.1.2 on Java 11 not working when being executed via compiled Jar file complaining on missing class (ClassNotFoundException: org.redisson.RedissonReference). Although everything works when...
View ArticleJedis does not delete keys
I have just installed redis' last version on Ubuntu 18.04.3. I have tried out writing values directly with redis-cli. 127.0.0.1:6379> set myket somevalue I am now trying to delete all values from...
View Articleinitialize a default key value pair while returning RedisTemplate object in java
I am trying to set the default key value pair while returning the redisTemplate from below chunk of code. Please help me if it is possible.public RedisTemplate<String, Object> redisTemplate() {...
View ArticleSpring RedisTemplate : Serialise multiple Model classes into JSON.Need to use...
I am using Spring Redis support to save my objects in Redis.I have several DAOs which handle different Model classes:For example, ShopperHistoryDao save/retrieve objects of ShopperHistoryModel,...
View ArticleSpring Data Redis search in collection
Let's imagine I've got entity like @RedisHash(value = "Question",timeToLive = -1) @Data public class Question { private String id; @Indexed private String question; @Indexed private String indexName;...
View ArticleSpring Cacheable unless condition doesn't work
I have developed a REST end-point in Springboot that takes a String ID and responds with a ModelAndView. This end-point is marked with @Cacheable annotation. Now there are two things that can happen at...
View ArticleSpring Redis Null Pointer Exception on redisTemplate
Hi I am working with java-redis integration with jedis and I came up with this problem when trying to setup project. I am new to spring so there might be some issues with initial setup. This is the...
View ArticleRedisSystemException Nested exception is An existing connection was forcibly...
org.springframework.data.redis.RedisSystemException: Redis exception; nested exception is io.lettuce.core.RedisException: java.io.IOException: An existing connection was forcibly closed by the remote...
View ArticleHow to implement Competition leaderboard using redis sorted set
I'm using Redis sorted set to maintain the leaderboard of my game. I have a scenario where I need to maintain the same rank of the users who have the same score as the Competition leaderboard. Eg.|...
View ArticleAdding rule to windows firewall in java for redis server which takes command...
I am trying to avoid the Windows Security Alert dialog box by adding a rule in the firewall. I am using java program which launches the redis server along with a config file and port no. In order to...
View ArticleLua script coverts empty array to object
Lua script converts empty array as an object. How to avoid conversion.test.lualocal json_str = '{\"items\":[],\"properties\":{}}' return cjson.encode(cjson.decode(json_str)) Outputredis-cli --eval...
View ArticleHow to use Redis and Jedis with Bungeecord and Bukkit to communicate across...
This links to a previous question I had before finding Jedis/Redis. I am on a Windows 10 PC and although I have found documents explaining how to code with Jedis (and have got the library working) I do...
View ArticleTimeout for JedisConnectionFactory
Is there a way to configure Read timeout in JedisConnFactory as we have for HttpRequestFactory? I've configured JedisConnFactory with timeout property as below. Does it include both Connection timeout...
View ArticleHow to use Redis command "bitcount" in java
I am trying to use redis bitmap to save online user, use command "bitcount onlineUser" to count the number of online user.I use RedisTemplate to deal with redis. But I can't find any API in...
View ArticleHow to sync an operation between Redis and MongoDB
I'll try to keep my question short and simple.Say, I have a Springboot application that allows creation of a certain entity with Time to live. I store the entity in a MongoDB. When a request comes to...
View Articledoes hibernate-redis supports 2nd level cache shared by different hibernate...
We want to use the hibernate-redis project https://github.com/debop/hibernate-redis to support redis 2nd level cache.Is this cache actually shared by different hibernate instances on different machines...
View ArticleDoes Redisson Hibernate Cache Module share same data in multiple containers?
We want to use the redisson-hibernate project https://github.com/redisson/redisson/tree/master/redisson-hibernate to support redis 2nd level cache.I tested redisson-hibernate module in multiple...
View Articleorg.springframework.data.mapping.MappingException, can not convert map to...
when converting map read from redis to my entity object,it throws such an exception: org.springframework.data.mapping.MappingException: Unexpected token (VALUE_STRING), expected START_ARRAY: need JSON...
View ArticleJava 8 Lambda expression with Serialization
In our Web application project, we are using the Redis to manage the session. To support it, we are serializing any object which will be stored in the session. For example, we use DTO's to hold the...
View ArticleIs it possible to store session in two different stores using Spring Session...
I am using redis for storing session in my Spring Boot app. I am also using Spring Session library to achieve this. I have two different redis instances namely US redis and EU redis. Once someone...
View Article