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 ?
↧