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

Redis streams Data missing

I am using Redis with the Jedis client , I have two classes , a Producer one and a Consumer one .The data sent by the producer class over streams is not being recieved well by the Consumer class . It...

View Article


How to load JPA context and all after fetching JSON from cache and mapping it...

I have JPA Entity class as such:class A extends BaseEntity{@ManyToOne(fetch = FetchType.LAZY)@JoinColumn(name = "b_id")private B b;@Column(name = "is_checked")private Boolean isChecked; }class...

View Article


Query redis data after a certain Timestamp

So I want to query all redisJsons that were inserted to the Redis cache after a certain timestamp .My redisJsons have a field like this one :GENERATION_TIMESTAMP : "2023-05-22 16:49:14.8052438"Is there...

View Article

Error integrating with Redis: DefaultSerializer requires a Serializable...

My colleague shared a working java seed project with me (I'm a newcomer to java) that is caching the result of a Spring Boot service into a Redis in-memory store. The service, which returned only one...

View Article

Redisson Cache Map does not evict if process is terminated

I am using Redisson's RMapCache to handle some distributed collections in my application.The keys in these collections, should expire after some time, so when adding keys I set the...

View Article


How to fetch lazily initialized collection after fetching its parent...

A{Intger id;String name;@ManyToOne(fetch = FetchType.LAZY)@JoinColumn(name = "b_id")private B b;}B{Integer id;String name;}After the spring boot cache the object A upon calling findById (annotated by...

View Article

Can Spring Boot have SessionCreationPolicy(STATELESS) and...

Basically trying to figure out how a spring boot application implemented in Kotlin I am currently working on functions. I seeing the SecurityConfig create the securityFilterChain with the HttpSecurity...

View Article

Redis for Local Testing using Java Jedis Client without a REDIS Server

I am pretty new to redis cache and trying to figure out a way to test my changes (Repositories) for redistribution locally. The idea is I do not have a redis server running locally, I do have it in my...

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


Is there a @Query in spring Data Redis?

I have been reading about spring Data Redis which is quite similar to spring data JPA.I have a USER class that has key has user id and value as the User object. I am trying to find all the user id's...

View Article

Using the Redis script in SpringBoot, an error is reported: attempt to...

In SpringBoot, I use RedisTemplate to execute the Lua script to implement the interface current limiter. The script is as follows:local key = KEYS[1]local count = tonumber(ARGV[1])local expiration =...

View Article

Redis healthcheck not working with spring boot app

I am trying to do request on http://localhost:8080/actuator/health to check if everything is UP.When communication is between locally run JAVAAPP -> REDIS in docker container the status is UP.But...

View Article

How can I disable REDIS for my Spring Boot integration tests? [duplicate]

I'm trying to disable REDIS in the context of my integration tests, but I'm not having success.Whenever I run the integration tests, SpringBoot starts saving the test data inside REDIS, which causes...

View Article


How to make only one consumer for redis message listener in spring boot 3 and...

I am using spring boot 3 with spring data redis with functionality like this example example . My solution is deployed in kubernetes cluster in multi pods configuration. I am producing a message from 1...

View Article

Resis text search special character using jedis ftsearch method

How can I search exact text search in redis which will contain special character like (:,_,$,#,;,!,?)1.I can't store that field in a tag we have a huge .text file2.i have tried with escape character...

View Article


Can not retrieve hibernate entity from redis cache: failed to lazily...

I am using spring boot and hibernate. as cache i am using redis and GenericJackson2JsonRedisSerializer.When I try to retrieve my entity from cache iI am getting:Failure getting from cache: user_entity....

View Article

Redis text search special character using jedis ftsearch method

How can I search exact text search in redis which will contain special character like (:,_,$,#,;,!,?)1.I can't store that field in a tag we have a huge .text file2.i have tried with escape character...

View Article


Failed to instantiate RedisTemplate in Spring Boot

I have a Spring Boot Application with Java 17 and Spring Boot 3.1.0, I am trying to connect my application with redis server but when I try to run the application it throws an exception asaused by:...

View Article

Redisson RBatch not executing thenAcceptAsync method

"I'm using Redisson version 3.19.1 and have two ZSETs to store lists of read and unread messages. When a message is read, it needs to be moved from the unread list to the read list. To ensure...

View Article

Why don't items expire in my Micronaut/Redis cache?

I have a Micronaut cache in Redis configured like this:redis: uri: ${REDIS_URL:`redis://localhost`} caches: kyc-fenergo-service-token: expire-after-write: 14mI have a method annotated like this:...

View Article
Browsing all 2204 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>