Redis with jHipster - Default configuration hasn't been specified
im using jhipster version 7.6.0 and this is my CacheConfiguration class.@Configuration@EnableCachingpublic class CacheConfiguration {private GitProperties gitProperties;private BuildProperties...
View ArticleChange parent of the class using instrumentation
I have a class called Client, it is extending Connection class, I want to make a class called KConnection which extends Connection class, and I want that the parent of the Client should not be...
View ArticleRace condition in multiple instance in kubernates
Hi i have a race condition in given method i have 2 instances in kubernates and checking in redispublic void method(GuestDTO guestDTO) { String executeName = "addingGuestToCache" + guestDTO.getUser();...
View ArticleSpring Redis: Parsing Object from Redis Stream throws ConversionFailedException
I'm trying to parse objects from a Redis stream via Spring Boot Reactive Redis that are added by an external service. I'm using the following the tutorial to retrieve the elements from the stream via a...
View ArticleStateless timers in microservices
I am trying to develop a micro service using Java/Redis/AMQ stack. The business requirement is that on receiving an order event on the JMS topic the service should:Wait X number of seconds for the...
View ArticleRedisson distributed locks - how much secure during redis failure?
I have a simple question about distributed locks in Reddison. How much are they secure during redis failure? I have an example (here is just one redis cluster):Thread A try to aquire a lock (simple...
View ArticleRace condition in multiple instance in kubernates
Hi i have a race condition in given method i have 2 instances in kubernates and checking in redispublic void method(GuestDTO guestDTO) { String executeName = "addingGuestToCache" + guestDTO.getUser();...
View Articlespring-session-data-redis: about the SaveMode.ON_GET_ATTRIBUTE
I find the is just to be used in the method of org.springframework.session.data.redis.RedisIndexedSessionRepository.RedisSession#getAttributeIn my opinion, getAttribute has not function, because the...
View ArticleIllegalMonitorStateException - Attempt to unlock read lock, not locked by...
RLock lock = lockService.getLock(TOPICNAME_LOCK_PREFIX + topicPrefix); if (lock.tryLock(5, TimeUnit.SECONDS)) { try { // Process business CODE } catch (Exception e) { throw new...
View ArticleRedisson is spamming redis
Spring boot app using hibernate and redis as cache.Problem is - redis have up-to 80K op/sec when app get 250 rps.here is spring configuration for redis (from...
View ArticleRedis storing list inside hash
I have to store some machine details in redis. As there are many different machines i am planning to use the below structureserver1 => {name => s1, cpu=>80}server2 => {name => s2,...
View ArticleIs it possible to check for betweenness in the key in redis cache
I have a requirement to check if the input number is between 2 ranges lowrange and highrange. These range values can be defined as 2 separate columns like below(similar to RDBMS) or maybe any other...
View ArticleApply range on the values of redis cache [duplicate]
I am using Elastic cache and redis in my project. I have the cache where key is String and Employee object as value. Employee class is as below. Is there any way to query redis such that it returns...
View Articlehow can i list all key values in reactive redis (quarkus)?
I have a flow to get the keys. I use these keys to get their values, then the list of values (Promotion) must be returned.The problem is how to join these two flows. Thanks for the help.I have created...
View ArticleHow to implement hmset in Lettuce Command Interface Commands
I am trying to invoke hmset command from Lettuce Command Interface CommandsBut at runtime it gives errorCommand HMSET requires at least 3 parameters but method declares 2 parameter(s). Offending...
View ArticleJava Quarkus using Redis as a Cache with UUID keys
Hello i'm having an issue with the java.util.UUID object in a redis cache. I have a cache defined as follows private final ValueCommands<UUID, String> commands; public Cache(RedisDataSource ds) {...
View Articleslow select in (...) (springdata jpa in mysql )
I have a table "A", "A" has a Column AreaId, When I select * from "A", I wanna show results where AreaId in my account.Other, I hava a table "B",it means I hava some AreaIds, It possible thousands or...
View ArticleHow to find the minimum number from a list of Redis keys using...
How to find the minimum number from a list of Redis keys using RedisAtomicInteger and then increment it using RedisAtomicIntegerI am trying to find a minimum count for Balls(my redis Key in which data...
View ArticleAdd ListAddListener to RBlockingQueue in Redisson
I am attempting to use ListAddListener to implement a reliable queue in Redisson. My problem is that I am unable to ender the onMessage method for the listener.I am able to use subscribeOnElements to...
View ArticleComposite indexes in Spring Data Redis
I'm using spring data Redis, I'm adding functionality to the project to query Redis hash object with multiple fields. I just created secondary indices on those fields using @Indexed annotation from...
View Article