CouchbaseBucket GetAndTouch T  Method Couchbase .NET SDK 2.1.0 Documentation
Retrieves a value 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 IOperationResult<T> GetAndTouch<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.GetAndTouch``1(System.String,System.TimeSpan)"]

Return Value

Type: IOperationResult T 
An IOperationResult T  with the key's value.

Implements

IBucket GetAndTouch T (String, TimeSpan)
See Also