![](../icons/Hazelcast-IMDG-Logo-Orange_Dark_200px.jpg) | IMapTKey, TValueEvict Method |
Evicts the specified key from this map.
Namespace:
Hazelcast.Core
Assembly:
Hazelcast.Net (in Hazelcast.Net.dll) Version: 3.9.4
SyntaxFunction Evict (
key As TKey
) As Boolean
abstract Evict :
key : 'TKey -> bool
Parameters
- key
- Type: TKey
key to evict
Return Value
Type:
Booleantrue if the key is evicted,
false otherwise.
Remarks
Evicts the specified key from this map. If
a
MapStore defined for this map, then the entry is not
deleted from the underlying
MapStore, evict only removes
the entry from the memory.
Warning:
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.
See Also