Entity
    Preparing search index...

    Enumeration RedisCacheInvalidationStrategy

    The strategy for generating the set of cache keys to invalidate in the Redis cache after entity mutation.

    Index

    Enumeration Members

    CURRENT_CACHE_KEY_VERSION: "current-cache-key-version"

    Invalidate just the cache key(s) for the current cacheKeyVersion of the entity.

    CUSTOM: "custom"

    Invalidate cache keys based on user-specified function from the current cacheKeyVersion to a list of cache key versions to invalidate.

    SURROUNDING_CACHE_KEY_VERSIONS: "surrounding-cache-key-versions"

    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.