Remove records in specified namespace/set efficiently. This method is many orders of magnitude
faster than deleting records one at a time.
Namespace: Aerospike.Client
See https://www.aerospike.com/docs/reference/info#truncate
This asynchronous server call may return before the truncation is complete. The user can still write new records after the server returns because new records will have last update times greater than the truncate cutoff (set at the time of truncate call).
Assembly: AerospikeClient (in AerospikeClient.dll) Version: 4.0.3.0 (4.0.3)
Syntax
Parameters
- policy
- Type: Aerospike.Client InfoPolicy
info command configuration parameters, pass in null for defaults
- ns
- Type: System String
required namespace
- set
- Type: System String
optional set name. Pass in null to delete all sets in namespace.
- beforeLastUpdate
- Type: System Nullable DateTime
optionally delete records before record last update time. If specified, value must be before the current time. Pass in null to delete all records in namespace/set regardless of last update time.
See Also