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