We use spring Redis data indexes to fetch some data apart from the key.
We are using Amazon Elastic Cache in a clustered mode.
It seems the Indexed entries are not getting cleared even if the original entries are getting cleared.
In our Redis Configuration we have subscribed to keyspace events on Startup. But it seems keyspace events don't work reliably as internally Spring data Redis subscribes to any random node.
Please check some links below for details
Spring Redis - Indexes not deleted after main entry expires
https://github.com/spring-projects/spring-data-redis/issues/1111
One recommendation is to subscribe to all the master nodes. I am not sure how to subscribe to all the nodes from Spring Data Redis.
Best Regards,
Saurav