DeleteAsync Method
DeleteAsync(TKey)
Removes an entry.
Declaration
Task DeleteAsync(TKey key)
Parameters
TKey | key | The key. |
Returns
Task |
Remarks
For performance reasons, this method does not return the removed value. Prefer RemoveAsync(TKey) if the value is required.
However, note that RemoveAsync(TKey) may breaks the events contract: this method does not consider the removed value at all, which means that any event that would be filtered on the value (for instance via a predicate), and would trigger with RemoveAsync(TKey), will not trigger here.