Quantcast
Channel: Active questions tagged redis+java - Stack Overflow
Viewing all articles
Browse latest Browse all 2204

Update entity in redis with spring-data-redis

$
0
0

I'm currently using Redis (3.2.100) with Spring data redis (1.8.9) and with Jedis connector.When i use save() function on an existing entity, Redis delete my entity and re create the entity.

In my case i need to keep this existing entity and only update attributes of the entity. (I have another thread which read the same entity at the same time)

In Spring documentation (https://docs.spring.io/spring-data/data-redis/docs/current/reference/html/#redis.repositories.partial-updates), i found the partial update feature. Unfortunately, the example in the documentation use the update() method of RedisTemplate. But this method do not exist.

So did you ever use Spring-data-redis partial update?

There is another method to update entity redis without delete before?

Thanks


Viewing all articles
Browse latest Browse all 2204

Trending Articles



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