MemcachedBucket Upsert T  Method (String, T, UInt32)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 IOperationResult<T> Upsert<T>(
	string key,
	T value,
	uint expiration
)

Parameters

key
Type: System String
The unique key for indexing.
value
Type: T
The value for the key.
expiration
Type: System UInt32
The time-to-live (ttl) for the key in seconds.
Type Parameters
T
The Type of the value to be inserted.

Return Value

Type: IOperationResult T 
An object implementing the IOperationResult T interface.

Implements

IBucket Upsert T (String, T, UInt32)
See Also