RemoveAsync Method
RemoveAsync(TKey)
Removes the entry if key
exists. Then, returns the value of the entry.
Declaration
Task<TValue> RemoveAsync(TKey key)
Parameters
TKey | key | Key of the entry to be removed. |
Returns
Task<TValue> | Value of the removed entry if any, otherwise null. |
Remarks
See DeleteAsync(TKey) for more optimal usage if value of the entry is not required.