Asynchronously delete records for specified keys.
Create listener, call asynchronous delete and return task monitor.
Requires server version 6.0+
Namespace: Aerospike.Client
Assembly: AerospikeClient (in AerospikeClient.dll) Version: 5.1.1.0 (5.1.1)
Syntax
C#
public Task<BatchResults> Delete( BatchPolicy batchPolicy, BatchDeletePolicy deletePolicy, CancellationToken token, Key[] keys )
Parameters
- batchPolicy
- Type: Aerospike.ClientBatchPolicy
batch configuration parameters, pass in null for defaults - deletePolicy
- Type: Aerospike.ClientBatchDeletePolicy
delete configuration parameters, pass in null for defaults - token
- Type: System.ThreadingCancellationToken
cancellation token - keys
- Type: Aerospike.ClientKey
array of unique record identifiers
Return Value
Type: TaskBatchResultsImplements
IAsyncClientDelete(BatchPolicy, BatchDeletePolicy, CancellationToken, Key)Exceptions
Exception | Condition |
---|---|
AerospikeException | if queue is full |
See Also