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

How can I store an Object as a value in Redis using Spring-Data-Redis?

I want to store an Object in Redis using Spring-Data-Redis, but it just doesn't save. If I change payload to a String, it DOES save. I originally had this as a JsonNode, but this caused a problem with...

View Article


Amazon Elasticache Redis cluster - Can't get Endpoint

I need to get the endpoint for a Redis cluster in Amazon Elasticache. The following code works for a Memcached cluster, but not for a Redis:import com.amazonaws.auth.AWSCredentials;import...

View Article


ClassNotFoundException: No RObject is found to match class type of...

Having problems to solve LiveObject raised exception, I try to reproduce problematic behavior based on Redisson test cases.The minimal code I get to reproduce issue is this test case (mostly inspired...

View Article

java.lang.IllegalAccessException: class...

I was trying to implement Redis caching for SpringBoot app which exposes Rest API. Important code snippets and maven build file enclosed.Start-up...

View Article

org.springframework.data.redis.RedisConnectionFailureException: Could not get...

My cassandra docker-compose file:version: '2'services: redis-node-0: image: docker.io/bitnami/redis-cluster:latest ports: - "6370:6379" environment: - 'REDIS_PASSWORD=pass' - 'REDIS_NODES=redis-node-0...

View Article


Redis Size Limit per individual cache

Redis can be used as a cache storage engine within Spring(boot) applications. However, it only allows to set an overall maxmemory size limit. Is there a way to restrict individual RedisCaches in their...

View Article

how to make a chat application using websocket and redis using eclipse,Please...

I am having trouble trying to make a chat application, the topic required is to use 2 eclipse tabs to run 2 different tomcat servers and exchange data with each other via redis, please show me how to...

View Article

what is the best usage Redis session for spring boot with external tomcat...

folks.I am using spring boot framework with tomcat container, and because of several reasons for maintaining this service, I try to share session with redis. usually I used spring-session-data-redis...

View Article


WebServerException: Unable to start embedded Tomcat

I want to debug my spring-boot application but I couldnt launch the debugger mode on Intellij IDE.I am getting following errorsCaused by: org.springframework.boot.web.server.WebServerException: Unable...

View Article


How to setup a connection to Redis Sentinel using Jedis library? [closed]

How do I setup a connection to a Redis Sentinel server/cluster using the Jedis library?

View Article

redis.clients.jedis.exceptions.JedisConnectionException: Failed connecting to...

I have inserted the connection code and got the data from redis into the web server code using websocket and it got the error like title, I'm doing a chat application, what should I do to fix it now?,...

View Article

Implementing an Always-Running Redis Client on Android

I'm looking to create a Redis client in my Android app that listens for messages (i.e, notifications) from the server.This is simple in the foreground. However, it is difficult to keep a service...

View Article

Image may be NSFW.
Clik here to view.

Fetch all unique scores from a stored set with Redis?

To add geo data following code is usedjedis.geoadd("storegeodata", 51.5074, 0.1278, "London");//while member string is mostly json jedis.geoadd("storegeodata", 51.5074, 0.1278, "{place:...

View Article


Image may be NSFW.
Clik here to view.

Redis cluster integration with Spring boot

I have a redis cluster with master, slave and 3 sentinel servers. The master and slave is map to dns names as node1-redis-dev.com, node2-redis-dev.com. The redis server version is 2.8I include below in...

View Article

How are multiple expiration criterions set in Caffeine Expiry?

I'm using Caffeine v2.8.5 and I want to create a cache with a variable expiry based on:the creation/update of the value andthe last access (read) of this value.Whatever comes first should trigger the...

View Article


redis transaction alongside jdbc transaction

In our application we are using both MySQL server and Redis databases. we use Redis as a database and not just a cache. we use both of them in a service method and I want to make the method...

View Article

How to implement Redis Multi-Exec by using Spring-data-Redis

All Spring Configuration is written properly. Non-Multi-Exec Redis operations work perfectly.@Autowired@Qualifier("stringRedisTemplate")StringRedisTemplate template;void test(){ template.multi();...

View Article


Can't find from where redis is getting updated with old data

I have a redis server running on production. I cleared cache completely a month ago and everthing was fine then and I again started building cache.But now for some keys I keep getting the old data and...

View Article

Embedded Redis for Spring Boot

I run my Integration Test cases with Spring Boot with the help of my local Redis server on my machine.But I want an embedded Redis server which is not dependent on any server and can run on any...

View Article

I want to know which key and value is empired in redis,how to realize it?

I have known how to listen the empire event,but I want to know which data is empired and do something by using the empired data

View Article
Browsing all 2203 articles
Browse latest View live


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