CouchbaseBucket.InsertAsync<T> Method Couchbase .NET SDK 2.0
Inserts or replaces an existing document into Couchbase Server.

Namespace: Couchbase
Assembly: Couchbase.NetClient (in Couchbase.NetClient.dll) Version: 2.0.0.0 (2.0.0.0)
Syntax
public Task<IOperationResult<T>> InsertAsync<T>(
	string key,
	T value
)

Parameters

key
Type: System.String
value
Type: T
Type Parameters
T

Return Value

Type: Task<IOperationResult<T>>
A Task that can be awaited on for it's IOperationResult<T> value.

Implements

IBucket.InsertAsync<T>(String, T)
See Also