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

Redis Insight shows keys with their doublequotes when using a Spring App

Yo,I was using a redis client in node js with Redis insight and everything was smooth. Now I'm trying a Spring App with Jedis however every key I insert is surrounded by doublequotes which makes the...

View Article


Redis stack lettuce pipeline queries

I need to run several ft.aggregate and ft.search queries in a row - the first query result is the input of the second one and so on. I would like to limit redis round trips so I thought I might use...

View Article


Fix SpelEvaluationException: EL1007E in Cachable changes

When I call the @CachePut function, I get the error:org.springframework.expression.spel.SpelEvaluationException: EL1007E: Property or field 'universalId' cannot be found on null.universalId is one of...

View Article

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 =...

View Article

Implement Flink Async I/O with Redisson Redis client has caused an error...

I have my Flink app deployed to AWS Managed Flink, while trying to implement async I/O with Redisson (Redis client) to connect to AWS MemoryDB (a Redis Cluster), I got an error (see below). It isn't...

View Article


Java Spring Boot Redis – How to know when is the Entity updated so i can...

I'm new to redis, this might be a basic question.I use @Cacheable() and @CacheEvict() annotation. When the user gets updated, and if i fetch the user by id, it fetches the cached (outdated) data. Of...

View Article

Unable to connect to Redis | Spring Boot

I've a redis service on upstash.io but not able to connect to it from my spring boot applicationThis is my redis config@Configurationpublic class RedisConfig { @Bean public LettuceConnectionFactory...

View Article

How to delete all data from Redis using RedisTemplate in java

I am using Lettuce as Redis client for my Java Spring project. I am doing several operations with RedisTemplate. I'm not able to delete all data from Redis using RedisTemplate.I...

View Article


Bucket4j tryConsume method blocking when Redis is unavailable

I'm using bucket4j to limit access to distributed service, where there are several pods, with the bucket distributed with Redis (using Lettuce). My goal now is to ensure that each pod can continue...

View Article


Spring Redis Stream consumer stops consuming messages (Address already in use)

I tried to test redis streams with spring-data-redis.I've implemented two aplications - first one adds records to the stream, second one consumes messages from the stream.It works, but after some time...

View Article

Spring Boot Application in Docker Unable to Connect to Redis Container...

I’m encountering a RedisConnectionFailureException error when trying to connect to Redis from my Spring Boot application running in Docker. Here’s the error message:ERROR 1 --- [ElasticSearch_books]...

View Article

Changing a type of param in application.yml

I have spring application and trying to cache data with Redis. For this cache i am trying to set TTL to 10 minutes and for some reason i can not use long type, only format like 'PT10M'.My...

View Article

Elasticache Redis (Unexpected end of stream)

I have a redis Elasticache in AWS and I'm trying to connect to this cache via Java code from a container that is deployed to AWS Kubernetes. But the connection is failing with this exception Unexpected...

View Article


Spring boot caching with redis,key have \xac\xed\x00\x05t\x00\x06

I want to use Spring cache @Cacheable to manager cache.And the real cache is redis.my code like that:@PostMapping("/post")@CachePut(value = "abc", key = "#key")public String putInRedis(@RequestParam...

View Article

Could not initialize cluster slots cache

I'm getting the exception below when trying to connect to AWS elasticache Redis server from a container that is deployed to AWS Kubernetes.Error:Could not initialize cluster slots cacheJava code:...

View Article


What are the notify-keyspace-events in Redis

I started to setup spring project by following this spring-boot article. But suddenly application could not start successfully, instead I am getting the following stack trace:Exception in thread "main"...

View Article

Getting A component required a bean named 'redisTemplate' that could not be...

I am facing a problem with connecting to two different Redis databases in the scope of the same instance. My Redis configuration class looks like this:package...

View Article


Using Aerospike and redis together in Spring Boot

I want to use Redis and Aerospike together, in the sense that I want to use Aerospike for Spring caching, but I want to use Redis as a memory that I only read a single value from(crud repository).I am...

View Article

JEDIS, Query nested tables, how?

I have JSON structure in REDIS that looks something like:{"name": "value""subtable": {"sub1":{"subtime": 123456 }"sub2":{"subtime": 999999 } }}I tried to build me schema...

View Article

Redisson client ; RedisTimeoutException issue

I am using Google cloud managed redis cluster(v5) via redisson(3.12.5)Following are my SingleServer configurations in yaml filesingleServerConfig: idleConnectionTimeout: 10000 connectTimeout: 10000...

View Article
Browsing all 2204 articles
Browse latest View live