Quantcast
Channel: Active questions tagged redis+java - Stack Overflow
Browsing all 2203 articles
Browse latest View live

How to create io.vertx.mutiny.redis.client.Response in tests

I am trying to mock out the ReactiveRedisClient redisClientThe signature for the get method is io.smallrye.mutiny.Uni<io.vertx.mutiny.redis.client.Response> get(java.lang.String arg0);However, it...

View Article


Jedis PubSub OOM issue with a solution from docs

Following (not much really, google and YT for "jedis pubsub" provides only few results) jedis pubsub docs and tutorials I have created most simplest app which we could imagine - simply subscribe to a...

View Article


Redis Cache (Redisson Client) not getting updated with DB (Mysql, Hibernate)...

I am able to cache the DB entity, but when I update it and do a get call to the same entity, I receive the stale the entity in response. Am I missing come configuration here?BTW I am trying to...

View Article

How to mock elasticcache(redis) server in Karate using FeatureServer

I am having redis hosted on AWS using Elastic Cache. I am using Redisson library as a client to access the redis. I am using apis like getAll() etc to query the cache. I am using endpoint like below in...

View Article

Local queuing framework for redis bulk write

I am using spring-data-redis in java spring boot microservice and I've got a bulk fetch operation for Entity e, for which I want to return results to the client asap and put the results in redis using...

View Article


Is 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 Article

How to get value of a key in redis cluster using redisson client

I am trying to get value of a key in redis cluster using redisson client .Config config = new Config(); config.useClusterServers()...

View Article

How to generate MetaModel for Redis Document entity to use in Redis OM...

I use Redis OM Spring Entity Streams, which provides a Java 8 Streams interface to Query Redis JSON documents using RediSearch.I want to generate a metamodel like Person$ to run the code below. But I...

View Article


Spring boot app unnecessarily adds _class property in redis

I have below POJO "MyClass" which is being saved in Redis.class MyClass { @Id private String someId; private GenericAnimalID genericAnimalID; @Transient private GenericAnimal genericAnimal}class...

View Article


How to keep listening for messages with Vertx and Redis?

I have a Listener like this:public class Listener extends AbstractVerticle { public static void main(String[] args) { Launcher.executeCommand("run", Listener.class.getName()); } @Override public void...

View Article

How can I find a java remote job?

Find a java remote work.I'm a Chinese.I have 8 years Java web developer experience. I want to find a full-time remote java work.I worked on a Chinase e-commerce company as a senior Java developer. Who...

View Article

How 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 created the...

View Article

When connecting AWS Redis to Redisson what node addresses to use

I am trying to use Redisson to connect to AWS Redis NOT clustered. There are 2 endpoints provided with such a AWS Redis configuration:Primary...

View Article


Request Rate Limiting using Redis using spring cloud gateway

Can Some one give me a sample example of how to implement Request rate limiting using redis in spring cloud gateway .I was trying to implement it but doesn’t, A sample Implementation would be appreciated

View Article

How to determine what Redis cache serializer to be used?

In my experience, I've used Redis cache serializers for RedisCacheManager as well as RedisTemplate. For RedisCacheManager, the default key serializer is StringRedisSerializer and the default value...

View Article


slow 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 Article

Spring boot app unnecessarily adds "ClassName._class" property in redis

I have below POJO "MyClass" which is being saved in Redis.class MyClass { @Id private String someId; private GenericAnimalID genericAnimalID; @Transient private GenericAnimal genericAnimal}class...

View Article


Webflux with reactive redis cache

I have a CacheConfig where I've setup the ReactiveRedisConnectionFactory and I can connect to Redis. However when I attempt to save anything into the cache it fails due toCaused by:...

View Article

Can I get assistance with Redis commands that do the following?

commands of Redis to do the following:Store this sentence in a string: “This is Database Systems.”Display the length of the stringAdd the sentence “The course code is NDBS742” to the end of the string...

View Article

How to listen for keyspace notifications of redis cluster in java using jedis...

I am setting a server which can listen and send message about any event occur in the redis database. I am successful in getting notified about new events for redis host and port but not able to do so...

View Article
Browsing all 2203 articles
Browse latest View live