Asynchronously create record if it does not already exist. If the record exists, the record's
time to expiration will be reset to the policy's expiration.
Namespace: Aerospike.ClientThis method schedules the touch command with a channel selector and returns. Another thread will process the command and send the results to the listener.
Assembly: AerospikeClient (in AerospikeClient.dll) Version: 3.0.0.0 (3.0.7)
Syntax
Parameters
- policy
- Type: Aerospike.Client WritePolicy
write configuration parameters, pass in null for defaults
- listener
- Type: Aerospike.Client WriteListener
where to send results, pass in null for fire and forget
- key
- Type: Aerospike.Client Key
unique record identifier
Exceptions
Exception | Condition |
---|---|
Aerospike.Client AerospikeException | if queue is full |
See Also