Currently when you run your application in cluster mode, each instance will have it's own cache expiration keys which might (and will) cause duplicate data in redis.
This could be avoided by storing the cache expiration keys in redis itself. Even with an automatic eviction policy (lru) the keys should stay in redis as they will be retrieved on every get call.
Currently when you run your application in cluster mode, each instance will have it's own cache expiration keys which might (and will) cause duplicate data in redis.
This could be avoided by storing the cache expiration keys in redis itself. Even with an automatic eviction policy (lru) the keys should stay in redis as they will be retrieved on every get call.