.NET Client Documentation
5.1.1
Search Results for

    Show / Hide Table of Contents

    PutAsync Method

    PutAsync(TKey, TValue)

    Sets (adds or updates) an entry, and returns the previous value, if any.

    Declaration
    Task<TValue> PutAsync(TKey key, TValue value)
    Parameters
    TKey key

    The key.

    TValue value

    The value.

    Returns
    Task<TValue>

    The previous value for the specified key, if any; otherwise default(TValue).

    PutAsync(TKey, TValue, TimeSpan)

    Declaration
    Task<TValue> PutAsync(TKey key, TValue value, TimeSpan timeToLive)
    Parameters
    TKey key
    TValue value
    TimeSpan timeToLive
    Returns
    Task<TValue>
    In This Article
    Back to top Copyright © 2010-2022 Hazelcast, Inc. All rights reserved.
    Generated by DocFX.