AsyncClientTouch Method (WritePolicy, CancellationToken, Key)

Aerospike
Asynchronously reset record's time to expiration using the policy's expiration. Create listener, call asynchronous touch and return task monitor. Fail if the record does not exist.

Namespace:  Aerospike.Client
Assembly:  AerospikeClient (in AerospikeClient.dll) Version: 5.1.1.0 (5.1.1)
Syntax

C#
public Task Touch(
	WritePolicy policy,
	CancellationToken token,
	Key key
)

Parameters

policy
Type: Aerospike.ClientWritePolicy
write configuration parameters, pass in null for defaults
token
Type: System.ThreadingCancellationToken
cancellation token
key
Type: Aerospike.ClientKey
unique record identifier

Return Value

Type: Task

Implements

IAsyncClientTouch(WritePolicy, CancellationToken, Key)
Exceptions

ExceptionCondition
AerospikeExceptionif queue is full
See Also

Reference