Table of Contents

Delegate PostEvictionDelegate<TKey>

Namespace
LinqToDB.Common.Internal.Cache
Assembly
linq2db.dll

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 TKey

The key of the entry being evicted.

value object

The value of the entry being evicted.

reason EvictionReason

The EvictionReason.

state object

The information that was passed when registering the callback.

Type Parameters

TKey
Extension Methods