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

How to enable TLS connection for my remote redis server?

I followed this tutorial to install redis on my linux vm. First of all, redis has bind address fixed to only localhost(127.0.0.1) so it won't connect from my local computer. What is the use-case here?...

View Article


how to use redis to persist token using spring-security-oauth2

It is my first time developing an application with OAuth2 approach. I started based on certain tutorial and I am moving forward from this...

View Article


Issue with avro schema evolution in Redisson

I am using avro schema. Which looks like below.{"name": "TestingData","type": "record","namespace": "com.avro.testing","doc": "testing information","fields": [{"name": "testingId","type":...

View Article

Is there a way to mock the onStatus method with a successful http status?

I have this method asyncRedisCalls and I need to mock it using JUNIT and Mockito which I already did almost everything. However, I am having issues to mock the onStatus method in my scenario. I need a...

View Article

Caused by: io.lettuce.core.RedisCommandExecutionException: MOVED 8731...

We have a spring-boot application which is deployed to tomcat contained in EC2 instance in AWS.In local I have redis setup. And in my application.yml my redis configuration look like this:redis:...

View Article


Redis expiry notification matching a specific key pattern

Is there a way to implement a key expiry logic matching a specific pattern in Redis with Spring?Here is what I have accomplished until now.RedisMessageListenerContainer listenerContainer = new...

View Article

Redis cache metrics doesn't work in SpringBoot version 2.4.2

We are trying to expose our redis cache metrics to Prometheus. Below are what we've done.We have a class CachingConfig as below,@Configuration@EnableCachingpublic class CachingConfig { private final...

View Article

Autocomplete with java , Redis, Elastic Search , Mongo

I have to implement an autocomplete with over 500,000 names which may later increase to over 4 million names. Backend is a java REST web service call using Spring. Should I use MongoDB, Redis or...

View Article


spring boot + redis cache + @Cacheable works for some methods and not others

I am using spring boot with redis for a cache, to improve application performance by reducing querying the RDBMS system.It works, as it caches the methods of another controller accurately but it does...

View Article


Which Design Pattern can be used to create multiple Redis Connection?

I have a requirement to use Standalone, Sentinel or Cluster Connection for Redis which should pick the respective connection based on property specified in properties...

View Article

Configure a new serializer for spring-boot redis cache config

I have been trying to change the default serializer for the spring-boot redis cache because i want to change from the Default to one of the Jackson2Json implementations. There are two implementations...

View Article

Potential memory leak due to spring-data-redis

Why does spring-data-redis stores primary key for every "hash" in a different set? For example, if we create an entity:@RedisHash(timeToLive=10, value="event")class Event { @Id private String id; ......

View Article

How to choose RedisCluster, RedisStandalone and Sentinel Connections based on...

Here is a requirement where i wanted to use either RedisCluster or Redisstandalone or Sentinel connection based on a configuration file. Example: If i specify configType=rediscluster then will use...

View Article


Cant connect to local Redis cluster with Lettuce

I'm running a Redis local cluster with Docker like thisdocker run --env "IP=0.0.0.0" -p 7000-7007:7000-7007 -p 5000-5002:5000-5002 -p 6379:6379 grokzen/redis-cluster:5.0.3I can't send commands when...

View Article

Connecting a Redis database to Azure Cloud with Java

Good Day I have this error in my Java code. I'm trying to link my database to azure cloud. I used list commands:Exception in thread "main" java.lang.IndexOutOfBoundsException: Index: 11, Size: 11 at...

View Article


Using Java to create and access redis database

Good Day,I have a project to do where I have to create a database with Redis bit maps data type and write a Java code to access the database with a GUI drop down menu. I was able to implement the code...

View Article

How to cache a Nested Dictionary in Redis to use by applications written in...

I have a nested dictionary in the form of{"Albert Einstein":{germany:4, UnitedStates:3},"Afganistan":{afganistan:4}}where each key isWikipedia Title and Value is another dictionary. This is in the form...

View Article


Redisson async procesing messages

I'm trying to aply Redisson features for my project as message broker and I have a question. Is it possible to push Redisson to precceding recieved messages asynchronously? I have created a small...

View Article

Image may be NSFW.
Clik here to view.

Spring Boot @RedisHash keys are persisted

I am using spring-data-redis to store and retrieve data with TTL. I can see multiple entries where one entry is always persisted which is maintaining KEYS (@Id annotated value). Looks like Redis keeps...

View Article

Redis - Alternative to check existence of multiple values in a set

In my application I need have a set of values and I need to check how many of these values are present in a set in Redis.Just to make it simple, What I want to do is something like :> Sadd myset...

View Article
Browsing all 2203 articles
Browse latest View live