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

Spring Data Redis Expire Key

I have a Spring Hibernate Application. In my application, Recently i am implemented Spring data Redis.spring-servlet.xml<!-- redis connection factory --><bean id="jedisConnFactory"...

View Article


Can you continue execution without redis when the redis server is down?

I have a java spring boot api rest service.I put in this service some annotations to cache methods @Cacheable @CachePut @CacheEvict..We want to continue execution of these methods when redis server is...

View Article


The object retrieved from the cache (Redis) has different ClassLoader and...

I have a Spring Boot app with Redis cache. I faced the an issue - when I put an object of class A to cache and then retrieve it back the object can't be casted to the class A.Person person = new...

View Article

Error creating bean with name 'enableRedisKeyspaceNotificationsInitializer'...

i'm trying to run Maven Spring application using Redis+ MYSQL, but i unable to run the app due to this error, i've been searching all over the web for proper answer but misfind.Error starting...

View Article

Error running Storm with Redis: java.lang.NoClassDefFoundError:...

My Storm class uses Redis queue to collect data.I tried to run my Storm jar by storm jar jar_file_name.jar Topology_name configuration_fileBut I got the following exception:Exception in thread "main"...

View Article


Unable to get value from redis using webflux

Currently I am storing some value in redisAnd when I try to get the value I am getting MonoNextThis is the coderedisOps.opsForValue().set(sId +"_" + cId +"_" + sufix, true);Mono<String> data =...

View Article

Use the redis lock

There is a business scenario: there are operations of adding, deleting and modifying, and no other operations can be performed during each operation. I want to use redis lock, and I would like to ask...

View Article

Using Protobuf with Java and Redis for fault tolerant serialization

I am building a POC Rest API project for my understanding and this is what I want to achieve.One end point receives some information about a User (User class).Save that information about user in...

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


Using Protobuf with Java and Redis for fault tolerant serialization

I am building a POC Rest API project for my understanding and this is what I want to achieve.One end point receives some information about a User (User class).Save that information about user in...

View Article

How to replicate Redis cache?

I'm working on a Java Spring application where some services are connected to an Elsticache Redis cluster for hibernate 2Level cache by using a Redisson client, other services are using Ehcache.I know...

View Article

Redis keys are getting deleted automatically

We are using redis as caching. There were cases when some of the keys were getting deleted and we couldn't find the reason. I put redis keyspace/keyevent for CONFIG SET notify-keyspace-events KEgxe on...

View Article

How to reconnect to redis using java with vertx?

The application I'm working on doesn't reconnect with the redis server if the server goes down.When my application goes up and the redis server is still not running, my application tries to reconnect...

View Article


Spring boot redis connection not working only during junit testing

Have a simple project with following config@Configuration@EnableRedisRepositoriespublic class RedisConfig { @Bean public RedisTemplate<String, Object> redisTemplate(RedisConnectionFactory...

View Article

Cannot invoke because "this.redisService" is null

I try to use Redis to set stock value.@SpringBootTestpublic class RedisDemoTest{ @Resource private RedisService redisService; @Test public void stockTest() { String value =...

View Article


Custom Spring RedisHash with multiple IDs for a parametrized key

I have some Redis hash keys which are defined as Class:<class_id>:Student:<student_id>. I'm having trouble defining this parametrized RedisHash in Springboot for keys like this. So far I've...

View Article

Actice and idle connection count for Redis in java

I use Lettuce to connect to Redis in a Springboot environment. I've set up a LettuceConnectionFactory with a GenericObjectPoolConfig config object. In the GenericObjectPoolConfig i've set the maximum...

View Article


Redis slaves cache rate mismatch

We have set up 3 Redis nodes amongst which 1 is designated master(handles writes) other 2 are slave nodes and act as read replicas.We have 3 sentinels also configured for automatic failover.The client...

View Article

Redis repository and polymorphism don't work together

I have this code :@Getter@Setter@RedisHashclass Root { private Base base;}public interface Base {}@Getter@Setterpublic class Implementor implements Base { // ...}public class...

View Article

The following is a cache null result configuration, cache breakdown?

The configuration to cache empty results was configured in application.yml, but it still crashed while testing the cache breakdown!Under normal circumstances, if the empty result is cached in...

View Article
Browsing all 2203 articles
Browse latest View live


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