Couchbase .NET SDK __CB_SDK_VERSION__

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>.ContainsKey(string)
IDictionary<string, TValue>.Add(string, TValue)
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

View Source

CountAsync

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

KeysAsync

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

ValuesAsync

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

Methods

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
View Source

AddAsync(string, TValue)

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

ClearAsync()

Declaration
Task ClearAsync()
Returns
Type Description
Task
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>
View Source

ContainsKeyAsync(string)

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

GetAsync(string)

Declaration
Task<TValue> GetAsync(string key)
Parameters
Type Name Description
string key
Returns
Type Description
Task<TValue>
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>
View Source

RemoveAsync(string)

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

SetAsync(string, TValue)

Declaration
Task SetAsync(string key, TValue value)
Parameters
Type Name Description
string key
TValue value
Returns
Type Description
Task
  • View Source
In this article
Back to top Copyright © 2020 Couchbase, Inc. All rights reserved.