Could not get a resource from the pool(SocketTimeoutException:)
I'm running multiple worker threads(around 10) to access the data from the redis Q. For the i'm using infinte timeout for Jedis Client. Jedis jedis = pool.getResource();...
View ArticleWhy is java HashMap resize or rehash not taking gradual approach like Redis
I am just wondering why the jdk HashMap reshashing process not taking the gradual approach as Redis. Though the rehash calculation of Jdk HashMap is quite elegant and effective, it will still take...
View ArticleNot able to connect redis jobstrore with quartz and spring boot
I am trying to setup RedisJobStore as the jobStore for storing quartz jobs. I am using quartz-2.3.0 I have used net.joelinn redis job store.<dependency> <groupId>net.joelinn</groupId>...
View ArticleAutocomplete with java , Redis, Elastic Search , Mongo
I have to implement an autocomplete with over 500,000 names which may later increase to over 4 million names. Backend is a java REST web service call using Spring. Should I use MongoDB, Redis or...
View ArticleHow can I search a redis hash table for entities that have a particular...
I have a RedisHash table that I've model in spring data like this:@RedisHash("Entity") @Data @AllArgsConstructor public class Entity implements Serializable { private String id; private String status;...
View ArticleSave & Get Locale From Redis in Spring
I need to save user locale to a Redis, and use it after user sign in. Now I am using CookieLocaleResolver() and it works only in one browser. I want to save locale in my Redis database and then get it...
View ArticleSpring Data Redis Refactor
I've made a terrible mistake with Spring Data Redis. When I refactor my code and move @RedisHash classes to different package, Spring Data is unable to find @RedisHash'es which are already present in...
View ArticleUpdate Single Field of Hash in Redis
Is it possible to update single field of Student object without needing other ones? Lets say I want to update grade field.import com.ahmetk.redis.redishll.model.Student; import...
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 ArticleHow compareAndSet works internally in redis
spring-data-redis module contains RedisAtomicLong class.In this class you can see public boolean compareAndSet(long expect, long update) { return generalOps.execute(new SessionCallback<Boolean>()...
View ArticleStreamSets processor cant find the Redis libs
I have a two containers with Redis and StreamSets. I want to write custom processor in Java and put to pipeline. But when I add code from tutorial to processor, send jar to lib and try to start I got...
View ArticleDistributed locking between Java and Nodejs application using Redis
In my current project I have two deal with two processes one written in Java another in NodeJs. Both the application does some computation and stores some data in Redis, but for some consistency reason...
View Articlethe problem I encounter is that the @ cacheable sync attribute does not take...
I have been granted the task of refactoring the cache. The version of springboot we use is 1.5.6. I want to upgrade the spring data redis version to 1.8.22. Because there are bugs in the get method of...
View ArticleUnable to fetch redis nested hash key values from javascript that are stored...
The redis values is populated using Java spring package: RedisTemplate. Now i need to consume these values in express server. For which i am using npm package: redis.The regular redis key values can be...
View ArticleSpring Redis Get Values by Wildcard Keys
I am using Spring Data RedisTemplate (not Repository). Everything works fine with template.opsForValues().get("mykey:1") But I have some more complex keys such as "myobject:somesituation:1" and...
View ArticleHow to fix "java.net.SocketTimeoutException: connect timed out"
I'm a beginner about spring boot. When I try run a redis code demo, the IDEA trows "java.net.SocketTimeoutException: connect timed out". I tried many methods but still can't solve this problem. I hope...
View ArticleHow to quickly query data in Oracle with data ID provided by redis
premiseThere are two redis in our system, one permission system and one permission databaseN business systems, N business ORACLE databasesThe permission system exclusively owns a redis. The user logs...
View ArticleWill Java Spring Boot Set and Get Values in Redis in a Thread Safe Way?
I need to store the values of an ArrayList that changes frequently and persist those values in case of an application crash. The application I'm working on uses a Redis database already, so it seemed...
View ArticleMicronaut Redis Lettuce Cache Conditionally Enable
For Micronaut Redis, is there a way to toggle whether or not caching is enabled using configuration properties? I see some other available caches have the ability to be enabled/disabled via...
View ArticleSaving / Retrieving list or records in/ from REDIS Cache
I have a data (as per below) which is stored in a POJO...
View Article