Evicted Method
Evicted(Action<IHMap<TKey, TValue>, MapEvictedEventArgs>)
Adds an handler which runs when the map is evicted.
Declaration
public MapEventHandlers<TKey, TValue> Evicted(Action<IHMap<TKey, TValue>, MapEvictedEventArgs> handler)
Parameters
Action<IHMap<TKey, TValue>, MapEvictedEventArgs> | handler | The handler. |
Returns
MapEventHandlers<TKey, TValue> | The handlers. |
Evicted(Func<IHMap<TKey, TValue>, MapEvictedEventArgs, ValueTask>)
Adds an handler which runs when the map is evicted.
Declaration
public MapEventHandlers<TKey, TValue> Evicted(Func<IHMap<TKey, TValue>, MapEvictedEventArgs, ValueTask> handler)
Parameters
Func<IHMap<TKey, TValue>, MapEvictedEventArgs, ValueTask> | handler | The handler. |
Returns
MapEventHandlers<TKey, TValue> | The handlers. |