Create Repository using redis in SpringBoot App
I have a object:@Data@AllArgsConstructorpublic class ResultGeoObjectDto { private String addressLine; private String location; private double latitude; private double longitude;}I created a service,...
View ArticleRadisson version to work with Spring 4.1.4?
I have been trying to find out the right version of redisson to work with spring 4.1.4, here is pomi am getting errorIf i am upgrading the spring-context to 5.2.2.RELEASE it throws error with...
View ArticleDisable spring session with redis in integrationtests
I am using spring session with redis, but I want to disable it while doing tests. My class is annotated:@ActiveProfiles("integrationtests")and my application-integrationtests.tml file...
View ArticleSpring JpaSpecificationExecutor no property findAll found for type Alarm
I use Redis to store my application's alarms with entity as below:@RedisHash("alarm")public class Alarm implements Serializable{ @Id @GeneratedValue(strategy = GenerationType.SEQUENCE) private Long id;...
View ArticleIs there any event I can subscribe to when a redis db is flushed #redis
I have an issue in my application(Java,Spring web application) where some of the objects are places in redis, and my Ops team does a FLUSHALL on the db without consent and some of my functionality...
View ArticleHow to pass own executors to the redis lettuce library?
I have below code to get the data from Redis asynchronously. By default get() call in lettuce library uses nio-event thread pool.Code 1:StatefulRedisConnection<String, String> connection =...
View ArticleHow to design "anonymous" functionality in the backend - good design patterns
When developing the notification center, we want to push newly generated notifications to the user. (using WebSocket, but that is unrelated to the question.) However, the notifications is generated...
View ArticleHow to fetch cached value using redisson client
I wanted to fetch cached(@Cachable) value using redisson client but it throws error.i have used below code for caching @Cacheable(value = "fruits", key = "#id") public Fruit getFruitById(int id) { //...
View ArticleWhich Java Redis clients would you recommend to work with JSON (RedisJSON...
I thought I would use Jedis client. But since I have found out how to work with JSON using this client, I am not quite sure that it is a good idea. JReJSON, from Redis Labs themselves, is mentioned in...
View ArticleHow to force stop/kill Spring Redis embedded server programmatically
I am using Redis embedded server for my integrations tests and I noticed that using the RedisServer.stop() method is not really stoping the mock server. Any idea how to force kill it in my test...
View ArticleHttpServletRequest Serialization Issue with Redis
The application that I am working on uses Redis and as fas as I know Redis tries to serialize every objects that are being stored in session.I have a below line in my code which is troubling...
View ArticleUnable to read Redis Cache Names and Cache Keys
I have a Spring Boot service that use Redis as a cache store using @Cachable. The same service also contain the Eviction calls using CacheManager. I want to move the Evict feature to a difference...
View ArticleController Unit Test How do I mock RedisTemplate opsForValue with return type...
In my controller I have code like the following.RedisTemplate stringRedisTemplatedef accessRedis(){ val = stringRedisTemplate.opsForValue().get('Key')}In my controller Test, I intent to inject a mocked...
View ArticleRedisson client exception Netty threads
I have my application deployed in openshift and also it uses Redis. White it works most of the time , I still face issue related to redisson which is intermittent. The error trace is as below while...
View ArticleSpring Data Redis : Is there a way to determine which redis node is spring...
Im pretty new to Redis and im trying to implement redis using spring data redis making redis as a storage database.We have a master and two slaves and we included readOnly configuration from...
View ArticleRange Querying in Redis - Spring Data Redis
is there a way we can implement Range queries in Redis using Spring Data Redis?Eg:If my Pojo class has Date(which is not a primary key) and i require data that falls under a desired period of date, Is...
View ArticleProper location for common models and utils, for multi-module maven project...
There is a multi-model maven project, with dir layout as following: xxx-parent/ common/ common-web/ member-api/ admin-api/ market-service/ ...As you can see, there is a parent pom, and multiple sub...
View ArticleUnable to connect to Jedis in AndroidStudio (Java)
My apllication is crushing when I press the button which is responsible for connecting to Redis database using Jedis client and changing TextView to value which stores jedis.ping() (It should return...
View ArticleHow to use composite key as id in spring redis entity as equivalent to...
I am using a spring data redis repository for retrieval and persistence into Redis. But I need the id to be composite of 2 fields. How can this be achieved.Is there any way equivalent to @EmbeddedId?
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 Article