CouchbaseBucket.TouchAsync Method Couchbase .NET SDK 2.3.3
Updates the expiration a key without modifying or returning it's 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> TouchAsync(
	string key,
	TimeSpan expiration
)

Parameters

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

Return Value

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

Implements

IBucket.TouchAsync(String, TimeSpan)
See Also