Type of the key.
Type of the value.
Type of the arguments bundle received by different operations.
This template argument is used to uniformize API of different policy implementations.
When using multiple policies together, they will share a common arguments bundle object.
Hook executed before cache has been cleared.
Hook executed before entry for key has been deleted.
Policy is supposed to detach metadata from entry
and cleanup it's internal data structures when this hook is called.
Entry that's being deleted.
Hook executed after entry for key was retrieved.
Policy might decide that entry is no longer valid and return EntryValidity.NOT_VALID.
In case it does so, policy is responsible to evict entry from cache before this method returns.
Entry hit on which was made.
Whether entry is still valid.
Hook executed after key wasn't found in the cache on Cache.get operation.
Name of the key.
Hook executed after entry for key has been set.
Entry that was inserted.
Arguments bundle for cache set operation.
Hook executed after value for entry associated with key has been updated.
Entry that was update.
Arguments bundle for cache set operation.
Set deleter which removes entries from cache.
Represents an abstraction over CacheEntry processing.
Policy might intercept cache operations and execute different actions using metadata attached to CacheEntry. These actions might result in CacheEntry evictions, depending on policy replacement algorithm.