Updates the expiration a key without modifying or returning it's value as an asynchronous operation.
Namespace: CouchbaseAssembly: Couchbase.NetClient (in Couchbase.NetClient.dll) Version: 0.0.0.0 (0.0.0.0)
Syntaxpublic Task<IOperationResult> TouchAsync(
string key,
TimeSpan expiration
)
public Task<IOperationResult> TouchAsync(
string key,
TimeSpan expiration
)
Public Function TouchAsync (
key As String,
expiration As TimeSpan
) As Task(Of IOperationResult)
Public Function TouchAsync (
key As String,
expiration As TimeSpan
) As Task(Of IOperationResult)
public:
virtual Task<IOperationResult^>^ TouchAsync(
String^ key,
TimeSpan expiration
) sealed
public:
virtual Task<IOperationResult^>^ TouchAsync(
String^ key,
TimeSpan expiration
) sealed
abstract TouchAsync :
key : string *
expiration : TimeSpan -> Task<IOperationResult>
override TouchAsync :
key : string *
expiration : TimeSpan -> Task<IOperationResult>
abstract TouchAsync :
key : string *
expiration : TimeSpan -> Task<IOperationResult>
override TouchAsync :
key : string *
expiration : TimeSpan -> Task<IOperationResult>
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