Asynchronously create record if it does not already exist.
Schedule the touch command with a channel selector and return.
Another thread will process the command and send the results to the listener.
If the record exists, the record's time to expiration will be reset to the policy's
expiration.
Namespace: Aerospike.ClientAssembly: AerospikeClient (in AerospikeClient.dll) Version: 3.4.0.0 (3.4.1)
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