MemcachedBucket GetAndTouchDocument T  Method Couchbase .NET SDK 2.1.0 Documentation
Retrieves a document by key and additionally updates the expiry with a new value.

Namespace: Couchbase
Assembly: Couchbase.NetClient (in Couchbase.NetClient.dll) Version: 2.1.0.0 (2.1.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.MemcachedBucket.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