Invalidate just the cache key(s) for the current cacheKeyVersion of the entity.
Invalidate the cache key(s) for the current cacheKeyVersion and the surrounding cache key versions
(e.g. 1
, 2
and 3
if the current version is 2
). This can be useful for deployment safety, where
some machines may be operating on an old version of the code and thus an old cacheKeyVersion, and some the new version.
This strategy generates cache keys for both old and potential future new versions.
The strategy for generating the set of cache keys to invalidate in the Redis cache after entity mutation.