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
keyTKeyThe key of the entry being evicted.
valueobjectThe value of the entry being evicted.
reasonEvictionReasonThe EvictionReason.
stateobjectThe information that was passed when registering the callback.
Type Parameters
TKey
- Extension Methods