nickschot / lux-redis-cache

[WIP] Middleware implementation of a redis based cache for Lux
MIT License
8 stars 1 forks source link

feat: cluster support #11

Open nickschot opened 7 years ago

nickschot commented 7 years ago

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.