CouchbaseBucket.GetAndTouchDocument<T> Method Couchbase .NET SDK 2.3.3
Retrieves a document by key and additionally updates the expiry with a new value.

Namespace: Couchbase
Assembly: Couchbase.NetClient (in Couchbase.NetClient.dll) Version: 0.0.0.0 (0.0.0.0)
Syntax
public IDocumentResult<T> GetAndTouchDocument<T>(
	string key,
	TimeSpan expiration
)

Parameters

key
Type: System.String
The key to "touch".
expiration
Type: System.TimeSpan
The expiration to extend.
Type Parameters
T

[Missing <typeparam name="T"/> documentation for "M:Couchbase.CouchbaseBucket.GetAndTouchDocument``1(System.String,System.TimeSpan)"]

Return Value

Type: IDocumentResult<T>
An IDocumentResult<T> with the key's document.

Implements

IBucket.GetAndTouchDocument<T>(String, TimeSpan)
See Also