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

Spring Boot @RedisHash keys are persisted

$
0
0

I am using spring-data-redis to store and retrieve data with TTL. I can see multiple entries where one entry is always persisted which is maintaining KEYS (@Id annotated value). Looks like Redis keeps track of keys as separate entry. In below image studentEntity entry size keeps on increasing. After TTL studentEntity:studentKey963 information will be removed but the KEY studentEntity:studentKey963 is stored in studentEntity entry. Any idea how it works and how to clear those persisted entries too ?

enter image description here


Viewing all articles
Browse latest Browse all 2203

Trending Articles



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