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

How to delete all data from Redis using RedisTemplate in java

I am using Lettuce as Redis client for my Java Spring project. I am doing several operations with RedisTemplate. I'm not able to delete all data from Redis using RedisTemplate.I...

View Article


Image may be NSFW.
Clik here to view.

How to create folders in redis's cache with spring?

I try to create folders in the redis cache of my project.I want something similar to what spring automatically do with spring session.I have a lot of "DisplayItem" entries and I want to store them in a...

View Article


Multi-server communication in minecraft

I want to create a plugin (spigot) for the server network bungecord and I have a problem because I want to make a command that will collect the TPS of all servers in the network and how with just...

View Article

Can Spring Session be turned off in Spring Boot 3?

In my Spring Boot 2.7.4 project, I use Spring Session with Redis by including these...

View Article

log Redis commands fired by Redisson Java client

Is there any available logger that can be used to show the commands executed by Redisson to Redis?e.g. like hibernate show sql flag.Something like when code does redisson.getJsonBucket().set() then the...

View Article


How to change the @Cacheable condition field at runtime?

I am using Redis from @Cacheable and I want to disable and enable it at runtime using AOPI tried to change the condition filed to "false" from AOP but it is not working and the caching is still saving...

View Article

Cannot connect to Redislabs redis server from Locahost

I have been trying to conenct to my redis server hosted by redislabs frm my localhost using Java.The code is like this:import com.lambdaworks.redis.RedisClient;import...

View Article

Cannot connect to Redislabs redis server from Localhost

I have been trying to connect to my redis server hosted by redislabs from my localhost using Java.The code is like this:import com.lambdaworks.redis.RedisClient;import...

View Article


Jedis : Could not get a resource from the pool

BackgroundOur application uses Jedis-2.2.1 and connects to Redis-2.6, here's how I get jedis resource : protected static JedisWrapper getRedisUserWrite(String UDID) { if (redisUserWritePools.get(0) ==...

View Article


Redis Insight shows keys with their doublequotes when using a Spring App

Yo,I was using a redis client in node js with Redis insight and everything was smooth. Now I'm trying a Spring App with Jedis however every key I insert is surrounded by doublequotes which makes the...

View Article

Redis FTAggregate with SORT BY doesnt work with Cursor

I am trying to process some data in batches using FTAggregate in Java. If I use sortBy I get results only on the ft.aggregate call and no results on subsequent cursor reads. My sort field is indexed as...

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 application is unable to connect with redis when deployed on docker

i have a spring boot application and i want to cache some methods but when i do so i get error 500 failed: org.springframework.data.redis.RedisConnectionFailureException: Unable to connect to Redis]the...

View Article


springboot shiro+redis JedisException: Could not return the broken resource...

commons-pool-evictor thread occasionally throws Error while closeredis.clients.jedis.exceptions.JedisException: Could not return the broken resource to the poolthis my config .the exception does not...

View Article

How to setup a connection to Redis Sentinel using Jedis library?

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

View Article


Springboot JWT Auth with Redis

I have an application that was working with JWT auth (without Redis)Actually I'm implementing Redis but I'm having some errors that I don't understand..We I sign in, the jwt token is responded ( but...

View Article

Spring Redis Get Values by Wildcard Keys

I am using Spring Data RedisTemplate (not Repository). Everything works fine with template.opsForValues().get("mykey:1")But I have some more complex keys such as "myobject:somesituation:1" and...

View Article


How can I set up a connection to Redis Sentinel using Jedis library?

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

View Article

Redis-Latency : in our project facing redis latency on standalone server...

facing latency in redis,below redis-benchmarh and -cli results indicates latency in redis. need recommendation on what configuration needs to be revisited and what could be the possible approaches to...

View Article

spring boot redis boolean value is not working

I am trying to get data from redis using crudRepository but it is not filtering by the boolean field. When I write repository.findAll() i am getting a list of objects and this object list's elements...

View Article
Browsing all 2203 articles
Browse latest View live


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