CouchbaseBucket.GetAndTouchAsync<T> Method Couchbase .NET SDK 2.3.3
Retrieves a value by key and additionally updates the expiry with a new value as an asynchronous operation.

Namespace: Couchbase
Assembly: Couchbase.NetClient (in Couchbase.NetClient.dll) Version: 0.0.0.0 (0.0.0.0)
Syntax
public Task<IOperationResult<T>> GetAndTouchAsync<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.GetAndTouchAsync``1(System.String,System.TimeSpan)"]

Return Value

Type: Task<IOperationResult<T>>
An Task<TResult>object representing the asynchronous operation.

Implements

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