A record with the Aerospike database consists of one or more record "bins"
(name-value pairs) and meta-data, including time-to-live and generation; a
record is uniquely identified by it's key within a given namespace.
Example: Writing a new record with 5 bins while setting a record TTL.
constAerospike = require('aerospike')
// INSERT HOSTNAME AND PORT NUMBER OF AEROSPIKE SERVER NODE HERE! varconfig = { hosts:'192.168.33.10:3000', // Timeouts disabled, latency dependent on server location. Configure as needed. policies: { write :newAerospike.WritePolicy({socketTimeout :0, totalTimeout :0}), } }
Example: Fetching a single database record by it's key.
constAerospike = require('aerospike')
// INSERT HOSTNAME AND PORT NUMBER OF AEROSPIKE SERVER NODE HERE! varconfig = { hosts:'192.168.33.10:3000', // Timeouts disabled, latency dependent on server location. Configure as needed. policies: { read :newAerospike.ReadPolicy({socketTimeout :0, totalTimeout :0}), write :newAerospike.WritePolicy({socketTimeout :0, totalTimeout :0}), } }
// INSERT HOSTNAME AND PORT NUMBER OF AEROSPIKE SERVER NODE HERE! varconfig = { hosts:'192.168.33.10:3000', // Timeouts disabled, latency dependent on server location. Configure as needed. policies: { read :newAerospike.ReadPolicy({socketTimeout :0, totalTimeout :0}), write :newAerospike.WritePolicy({socketTimeout :0, totalTimeout :0}),
A record with the Aerospike database consists of one or more record "bins" (name-value pairs) and meta-data, including time-to-live and generation; a record is uniquely identified by it's key within a given namespace.
Example: Writing a new record with 5 bins while setting a record TTL.
Example: Fetching a single database record by it's key.
Since
v5.0.0
Example: Fetching a batch of records.
Since
v5.0.0
Example: Applying functions on batch of records.