EvictAsync Method
EvictAsync(TKey)
Evicts the specified key from the map.
Declaration
Task<bool> EvictAsync(TKey key)
Parameters
TKey | key | The key. |
Returns
Task<bool> |
|
Remarks
If a MapStore
on server is defined for this map,
then the entry is not deleted from the underlying MapStore
,
evict only removes the entry from the memory.
Use DeleteAsync(TKey) or GetAndRemoveAsync(TKey)
if MapStore.delete(object)
needs to be called.
This method uses GetHashCode
and Equals
of binary form of
the key
, not the actual implementations of GetHashCode
and Equals
defined in key
's class.