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

Cannot connect to redis instance by using redisson

I am able to connect to a redis instance by using jedis but not by using redisson.Here is my jedis configuration:@Bean public JedisConnectionFactory jedisConnectionFactory(@Qualifier("appRedis") final...

View Article


Redis with in multi instance spring boot application [closed]

Basically this is conceptual question. I've tried search it, but without clear cut answer.I need to migrate my Spring Boot & Redis application to run over more then one replica (using Kubernetes if...

View Article


Spring boot can not read data from redis cache...

I am trying to made spring boot app that is reading data from redis cache. But I can not.Firstly I am calling post api to create user and then I am calling get api to getUserById but I am getting error...

View Article

Redis and concurrency errors in Quarkus: ERR EXEC without MULTI

I have an application that saves data in redis, this data arrives through events in a queue which generates a high concurrency environment. To maintain data consistency I have used the Redis MULTI /...

View Article

Using @Cacheable annotation with a Reactive controller method

I am currently trying to implement a caching with Redis for Sprint Boot application:@Cacheable(value = "products", key = "#id")@GetMapping(value = "/product/{id}")public Mono<Product>...

View Article


How to pipe commands in testcontainers execInContainer metod

I would like to run piped commands on docker through testcontainer execInContainer method. I'm able to run a single command (e.g. execInContainer("redis-cli", "keys", "*"), but when providing a pipe...

View Article

"java.util.NoSuchElementException: No value present" in Spring Data Redis

I have a test, where Spring Data Redis is used.This is the configuration:public class StartUpConfiguration {@BeanJedisConnectionFactory jedisConnectionFactory() { RedisStandaloneConfiguration...

View Article

Connect to Redis using java code if there is docker compose of Redis and...

I am trying to connect to Redis using below Java code with Jedis library but connection is failng can someonen please help on this ?.Jedis jedis = new Jedis("localhost");String pingResponse =...

View Article


redis.clients.jedis.exceptions.JedisConnectionException:...

While trying to use Jedis.get(key) while accessing the Redis using Jedis I'm getting this error.redis.clients.jedis.exceptions.JedisConnectionException: java.net.SocketException: Broken pipe (Write...

View Article


Spring Caching's AbstractCacheInvoker doPut() method calls RedisCache put()...

I have a web application written in spring boot, that uses springframework.cache, and everything worked fine until I started using spring-data-redis.As soon as I add spring-data-redis in the pom.xml,...

View Article

Is recursion necessary in Quarkus/Mutiny?

I'm trying to use Redis'scan feature which needs to called until the cursor returned is "0."This approach works but feels overly complicated - is there a way to do it without...

View Article

Lettuce RedisCodec For Numbers

Using Lettuce 5 as a Redis client for the first time, I'm finding it rather confusing to simply create a RedisCommands<String, Long> for getting/setting Redis values as a Long.It's a little...

View Article

Synching Stomp over Web Sockets in SpringBoot on a Cluster with Redis as a...

I am working on a SpringBoot web app using web sockets and I have a functional implementation for a single server.I am researching the best solution for integrating a cluster of servers so that the...

View Article


How to set up and query dynamic fields in Redis through a Spring application?

I'm using Spring with Spring Data Redis.Our requirements entail that we need to be able to allow dynamic reference fields to be added to an entry in the DB and queried based off some base model. We are...

View Article

How to Serialize Java Object into json and Reverse Json to Object when using...

I am using SpringBoot with Redis And want to serial object UserDO into Json, store it in Redis, and get the json data, reverse it into UserDO Object.This is UserDOpublic class UserDO {String name;int...

View Article


Does Redis Hget key value loads the hash contents into main memory

I have my java on separate kubernetes pod and redis is on separate ip address each have their separate memoryHave created one hash in redis as belowhashfunction key value.value is a set of stringthis...

View Article

redis onExpire event handled by only one instance

I have 2 instances of an application running in cluster(JGroups) and having a listener registered on the onExpire event of redis, the issue is that the listener is triggered by the 2 instances. How can...

View Article


Image may be NSFW.
Clik here to view.

Why Redisson RLocalCachedMap Invoke ‘DEL’ command sometimes?

We use redisson RLocalCachedMap with follow config:LocalCachedMapOptions<String,DictDTO> organCacheMapOption = LocalCachedMapOptions.defaults(); organCacheMapOption .cacheSize(102400)...

View Article

Is the taskId globally unique in a Redisson distributed scheduler service?

So I could not find any confirmation in the official documentation on the uniqueness of the taskId returned after scheduling a task. Is the taskId globally unique (between all the Redisson nodes) or is...

View Article

Unable to create Kafka Redis Sink with Single Message Transformations

I am trying to create a Kafka Redis sink that deletes a particular key in Redis. One of the ways is to create a Record or Message in Kafka with a specific key and Value as null. But as per the use...

View Article
Browsing all 2203 articles
Browse latest View live