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

Unclear about how to structure a vertx-redis-client code

I'm trying to implement a compare-and-delete (CAD) function using the vertx-redis-client library.I'm following this answer on how to do this. I've already implemented the Lua script method and that...

View Article


Image may be NSFW.
Clik here to view.

Unable to set up a simple Redis + Spring project: "Java 8 date/time type...

and many thanks for your help in advance! I am trying to set up a simple Spring + Redis project, using IntelliJ, and sadly it just doesn't work.I have checked countless forum posts here, but sadly to...

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

spring service to check otp code with redis

I am implementing the following logic to change the password via email using a otp code. the logic is as follows:the user enters email, the service checks that the user exists, checks if there is a...

View Article

Is it possible to find keys which are on different shards using Lettuce using...

I am using spring data redis in my api. I am trying run the following command through java :Set<String> union = redisTemplate.opsForSet().union(ids);which is causing CROSSSLOT Keys in request...

View Article


RedisConnectionException: Unable to init enough connections amount

Today I start the spring boot project in MacBook Pro with M1 pro(with 8 performance core and 2 efficient core), shows error:Caused by: org.springframework.beans.factory.BeanCreationException: Error...

View Article

Spring Boot Redis(cluster sentinel) is this possible to get published message...

I am using Redis(cluster sentinel) for the pub/sub mechanism.I have an issue with the subscription client when there is the master pod gets down and another becomes master that time someone is...

View Article

RedisConnectionException: Unable to init enough connections amount

Today I start the spring boot project in MacBook Pro with M1 pro(with 8 performance core and 2 efficient core), shows error:Caused by: org.springframework.beans.factory.BeanCreationException: Error...

View Article


IllegalMonitorStateException - Attempt to unlock read lock, not locked by...

RLock lock = lockService.getLock(TOPICNAME_LOCK_PREFIX + topicPrefix); if (lock.tryLock(5, TimeUnit.SECONDS)) { try { // Process business CODE } catch (Exception e) { throw new...

View Article


How do I 'lookup' a Redis value shoved into Redis by Spring's RedisTemplate...

I have some Java code implemented in Spring that persists a Java Bean like...@Repositorypublic class SomeDamnRedisRepository { private static final String KEY = "someDamn"; private static final Logger...

View Article

Redis test isn't working - this test method is being called multiple times...

I'm learning Spring Boot and have built a simple RESTful API. In this API I'm just simply adding "student" information. Every test runs successfully except for the test in the StudentConfigTest.java...

View Article

Spring Session Redis failing to serialize OAuth2AccessToken

I'm trying to setup Spring session with Redis and I want data to be serialized to JSON.This is my SessionConfig:@Configurationpublic class SessionConfig implements BeanClassLoaderAware {...

View Article

Java Spring MVC redis issue in Redis Cache manager

I m trying to use Redis in Spring MVC. I have added Redis cache dependencies in pom.xml created configuration file for Redis but it keeps throwing error. Please see the error below.`The type...

View Article


Redis Lettuce Client Command Latency Event Wasn't Retrieved in the subscriber

Command latency event wasn't retrieved in the subscriberThe code implementation of command latency monitoring using Letuce Redis client in Spring Boot MVC app didn't collecting any command latency...

View Article

Data loss during Redis master slave transition

I am using UnifiedJedis to perform read and write operations on Redis. I'm facing an issue with data loss when there is a master and slave.The issue with the Jedis transaction was when we shut down the...

View Article


Image may be NSFW.
Clik here to view.

"Can't start redis server" exception occurs when trying to run Spring Boot on...

When I try to run my Spring Boot app using IntelliJ IDE, everything builds properly and no warning and errors are show. Once the app starts running the following runtime exception occurs:Can't start...

View Article

Redis working with ~4k max file descriptors

I've seen multiple questions/answers on how to increase the max file descriptors so Redis won't complain about it but my question is different and I don't seem to find an answer:Trying to use it, in a...

View Article


For java which redis library to use to Witte logic for bloomfilter [closed]

Which library needs to be add to use redis bloomfilter?I have searched redisson client librar, it si reliable

View Article

Container API cannot connect to container Redis:...

I'm trying to connect to a Redis database through a Java application, but I'm getting the following error:org.springframework.data.redis.RedisConnectionFailureException: Unable to connect to...

View Article

Unable to connect to Redis,RedisConnectionException: Unable to connect to...

I'm trying to configure a redis connection within my SpringBoot project.The application starts up without any issues, but when I try to test any Redis operation, specifically when making a call to a...

View Article
Browsing all 2204 articles
Browse latest View live


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