Delegate PostEvictionDelegate<TKey>
Signature of the callback which gets called when a cache entry expires.
public delegate void PostEvictionDelegate<TKey>(TKey key, object? value, EvictionReason reason, object? state) where TKey : notnull
Parameters
key
TKeyThe key of the entry being evicted.
value
objectThe value of the entry being evicted.
reason
EvictionReasonThe EvictionReason.
state
objectThe information that was passed when registering the callback.
Type Parameters
TKey
- Extension Methods