I'm using a Spring Redis repository and I'm puzzled with the delete operation and the phantom key.
When a delete is performed, the phantom key is not deleted, is it a normal behaviour ? If yes, is it possible to force a deletion of the phantom key when the original key is deleted from the code.
I was expecting that a delete removes the original key AND the associated phantom key.
I planned to use to timeToLive feature to ensure that keys not deleted by my application will expire after a while.
Annotation set on the concerned domain object
@RedisHash(value = "requestContext", timeToLive = 9000)
The delete is performed on this way:
repository.delete(id)
Thank in advance for your help.