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

How to store non persistent java object in redis cache java

I have EmployeeDto as a Object , which is not sync with database . I want to put EmployeeDto inside redis cache .I have gone through example where I can see database entity are getting cached using...

View Article


Retrieve data from redis cache with pagination

I have redis cache with structure as belowprivate HashOperations<String, Long, Object> hashOperations;//put data in cachehashOperations.put("Key", 1, SomeObject);I need to fetch data from the...

View Article


Spring-data-redis Jedis RedisMessageListenerContainer -Connection failure...

I found some similar problems here but the solutions does not fix mine, there seems to be a mistake in my message listener (subscription) configuration.I am pretty new with redis and I would like to...

View Article

How to implement redis "HGET" in spring reactive

I tried to make some hash operation with spring reactive and then I got some errors from these codes.It always told me to convert Mono<Map<String, String>> into Mono<Object.The idea is...

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


How can I set a value on redis terminal for a map?

in my java code, I set the value of a hash as a map,Map map<String, Long> map = new HashMap();map.set("one",1L);map.set("two",2L);redisClient.hset("key", "field", map);now I if I use redis hget...

View Article

Lettuce retreival very slow

I need to cache ArrayList as value for certain keys. For this I am using Lettuce client in Spring. But HashForValues is giveing very slow results while retrieving. I also need to update values...

View Article

How to pass ipv6 address in Redis connection

I am using Redisclient as following.RedisClient redisClient = new RedisClient(RedisURI.create("redis://fe80::20c:29ff:fec5:a66b:6379"))But it gives error as "Host name cannot be null".What is wrong in...

View Article


JSON ignore the file name

I have JSON from another service inside the JSON there is a package name with a class name for this json, how can I ignore it and get just the data that I want["com.yali.S3File", {"component": {"id":...

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

Image may be NSFW.
Clik here to view.

Shared native connection in Redis

What is the shared native connection in Redis? How to understand it?Thank you.

View Article

Redis: Unable to connect to 192.168.42.223/:6379

I am trying to connect to redis in java using lettuce. Following is my codeimport io.lettuce.core.RedisClient;import io.lettuce.core.api.StatefulRedisConnection;RedisClient redisClient =...

View Article

methods of storing session in redis using spring

I am in dilemma to store session in redis using Spring and there are many methods and concepts to handle this issue. Some methods are listed below:Spring Data Redis Spring Session Spring Session...

View Article


Jedis keyspace notification event for "set" not working

So im trying to implement basic listener for when some value is set on redis, but when i set some value nothing happens and only expiry event gets called.Subscriberpublic class Subscriber { private...

View Article

Unit test Redis Template executePipelined() for multi save with timeout

This is my function that uses StringLong Redis Template, and stores multi values to Redis with a timeout. I am facing a problem verifying the save operation for each key.private final...

View Article


RedisGears and Java Client

How to execute RedisGears TRIGGER with a java client? (Jedis, Lettuce)I need to execute redis-cli commands through a java client.Something like jedis.execute("set foo 100").

View Article

How to use GenericJackson2JsonRedisSerializer

I am using Spring Data Redis in order to cache some data using @Cacheable. I have multiple types of objects that need to be cached and I need the data from Redis to be in JSON format. I know that, by...

View Article


Is all redis cluster master nodes data same?

For example, I have A, B, C master nodes and A1, B1, C1 slave nodes in redis cluster.I know A would sync data to A1, as well as B and C.So, are there the same data in A, B, C master nodes?

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

Save key-value in redis with HSET function

Hi i am have java object , Student with fields id, name, ... I'am need save this object in key-value format in redis in memory, where key is Student.id and value is Student object. I am need do that...

View Article
Browsing all 2203 articles
Browse latest View live