.NET Client Documentation
5.1.1
Search Results for

    Show / Hide Table of Contents

    EvictAsync Method

    EvictAsync(TKey)

    Evicts the specified key from the map.

    Declaration
    Task<bool> EvictAsync(TKey key)
    Parameters
    TKey key

    The key.

    Returns
    Task<Boolean>

    true if the entry was evicted; otherwise false.

    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 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.

    In This Article
    Back to top Copyright © 2010-2022 Hazelcast, Inc. All rights reserved.
    Generated by DocFX.