Couchbase .NET SDK | 3.7.2
Search Results for

    Show / Hide Table of Contents

    Interface IPersistentDictionary<TValue>

    Represents an IDictionary<TKey, TValue> which is persisted to a backing store.

    Inherited Members
    IDictionary<string, TValue>.Add(string, TValue)
    IDictionary<string, TValue>.ContainsKey(string)
    IDictionary<string, TValue>.Remove(string)
    IDictionary<string, TValue>.TryGetValue(string, out TValue)
    IDictionary<string, TValue>.this[string]
    IDictionary<string, TValue>.Keys
    IDictionary<string, TValue>.Values
    ICollection<KeyValuePair<string, TValue>>.Add(KeyValuePair<string, TValue>)
    ICollection<KeyValuePair<string, TValue>>.Clear()
    ICollection<KeyValuePair<string, TValue>>.Contains(KeyValuePair<string, TValue>)
    ICollection<KeyValuePair<string, TValue>>.CopyTo(KeyValuePair<string, TValue>[], int)
    ICollection<KeyValuePair<string, TValue>>.Remove(KeyValuePair<string, TValue>)
    ICollection<KeyValuePair<string, TValue>>.Count
    ICollection<KeyValuePair<string, TValue>>.IsReadOnly
    IEnumerable<KeyValuePair<string, TValue>>.GetEnumerator()
    IEnumerable.GetEnumerator()
    IAsyncEnumerable<KeyValuePair<string, TValue>>.GetAsyncEnumerator(CancellationToken)
    Namespace: Couchbase.DataStructures
    Assembly: Couchbase.NetClient.dll
    Syntax
    public interface IPersistentDictionary<TValue> : IDictionary<string, TValue>, ICollection<KeyValuePair<string, TValue>>, IEnumerable<KeyValuePair<string, TValue>>, IEnumerable, IAsyncEnumerable<KeyValuePair<string, TValue>>
    Type Parameters
    Name Description
    TValue

    Type of value in the set.

    Remarks

    If using a SystemTextJsonSerializer backed by a JsonSerializerContext, be sure to include IDictionary<string, TValue> in a JsonSerializableAttribute on the context.

    Properties

    | Edit this page View Source

    CountAsync

    Declaration
    Task<int> CountAsync { get; }
    Property Value
    Type Description
    Task<int>
    | Edit this page View Source

    KeysAsync

    Declaration
    Task<ICollection<string>> KeysAsync { get; }
    Property Value
    Type Description
    Task<ICollection<string>>
    | Edit this page View Source

    ValuesAsync

    Declaration
    Task<ICollection<TValue>> ValuesAsync { get; }
    Property Value
    Type Description
    Task<ICollection<TValue>>

    Methods

    | Edit this page View Source

    AddAsync(KeyValuePair<string, TValue>)

    Declaration
    Task AddAsync(KeyValuePair<string, TValue> item)
    Parameters
    Type Name Description
    KeyValuePair<string, TValue> item
    Returns
    Type Description
    Task
    | Edit this page View Source

    AddAsync(string, TValue)

    Declaration
    Task AddAsync(string key, TValue value)
    Parameters
    Type Name Description
    string key
    TValue value
    Returns
    Type Description
    Task
    | Edit this page View Source

    ClearAsync()

    Declaration
    Task ClearAsync()
    Returns
    Type Description
    Task
    | Edit this page View Source

    ContainsAsync(KeyValuePair<string, TValue>)

    Declaration
    Task<bool> ContainsAsync(KeyValuePair<string, TValue> item)
    Parameters
    Type Name Description
    KeyValuePair<string, TValue> item
    Returns
    Type Description
    Task<bool>
    | Edit this page View Source

    ContainsKeyAsync(string)

    Declaration
    Task<bool> ContainsKeyAsync(string key)
    Parameters
    Type Name Description
    string key
    Returns
    Type Description
    Task<bool>
    | Edit this page View Source

    GetAsync(string)

    Declaration
    Task<TValue> GetAsync(string key)
    Parameters
    Type Name Description
    string key
    Returns
    Type Description
    Task<TValue>
    | Edit this page View Source

    RemoveAsync(KeyValuePair<string, TValue>)

    Declaration
    Task<bool> RemoveAsync(KeyValuePair<string, TValue> item)
    Parameters
    Type Name Description
    KeyValuePair<string, TValue> item
    Returns
    Type Description
    Task<bool>
    | Edit this page View Source

    RemoveAsync(string)

    Declaration
    Task<bool> RemoveAsync(string key)
    Parameters
    Type Name Description
    string key
    Returns
    Type Description
    Task<bool>
    | Edit this page View Source

    SetAsync(string, TValue)

    Declaration
    Task SetAsync(string key, TValue value)
    Parameters
    Type Name Description
    string key
    TValue value
    Returns
    Type Description
    Task
    • Edit this page
    • View Source
    In this article
    Back to top © 2025 Couchbase, Inc.