Continuation functions that are registered when an async DB operation is called. The DB passed is IAerospikeClient. The value returned from those function will be the value of the returned deferred from the async operation.
Continuation functions that are registered when an async DB operation is called. The DB passed is IAerospikeClient. The value returned from those function will be the value of the returned deferred from the async operation.
(on-failure _ op-name op-ex index op-start-time db)
A continuation function. Registered on the operation future and called when operations fails.
A continuation function. Registered on the operation future and called when operations fails.
(on-success _ op-name op-result index op-start-time db)
A continuation function. Registered on the operation future and called when operations succeeds.
A continuation function. Registered on the operation future and called when operations succeeds.
(create db index set-name data expiry)
put with a create-only policy
put with a create-only policy
(create-event-loops conf)
Called internally to create the event loops of for the client. Can also be used to share event loops between several clients
Called internally to create the event loops of for the client. Can also be used to share event loops between several clients
(delete db index set-name)
deletes the record stored for key <index>. Returns async true/false for deletion success (hit)
deletes the record stored for key <index>. Returns async true/false for deletion success (hit)
(exists? db index set-name)
(exists? db index set-name conf)
Asynchronously check if an index exists
Asynchronously check if an index exists
(expiry-unix ttl)
Returns the epoch time of now + <ttl> seconds
Returns the epoch time of now + <ttl> seconds
(get-cluster-stats db)
For each xdr client, returns a vector of [metric-name metric-val] 2-tuples. The metric name is a dot separated string that should be convenient for reporting to statsd/graphite. All values are gauges.
For each xdr client, returns a vector of [metric-name metric-val] 2-tuples. The metric name is a dot separated string that should be convenient for reporting to statsd/graphite. All values are gauges.
(get-multiple db indices sets)
(get-multiple db indices sets conf)
returns a (future) sequence of AerospikeRecords returned by get-single with records in corresponding places to the required keys. Indices and sets should be sequences
returns a (future) sequence of AerospikeRecords returned by get-single with records in corresponding places to the required keys. Indices and sets should be sequences
(get-single db index set-name)
(get-single db index set-name conf)
returns: (transcoder AerospikeRecord).
returns: (transcoder AerospikeRecord).
(get-single-no-meta db index set-name)
returns record payload only.
returns record payload only.
(healty? db operation-timeout-ms)
Returns true iff the cluster is reachable and can take reads and writes. Uses __health-check set to avoid data collisions. operation-timeout-ms
is for total timeout of reads (including 2 retries so an small over estimation is advised to avoid false negatives.
Returns true iff the cluster is reachable and can take reads and writes. Uses __health-check set to avoid data collisions. `operation-timeout-ms` is for total timeout of reads (including 2 retries so an small over estimation is advised to avoid false negatives.
(get-all-clients _)
Returns all AerospikeClient objects
Returns all AerospikeClient objects
(get-client ac index)
Returns the relevant AerospikeClient object for the specific shard
Returns the relevant AerospikeClient object for the specific shard
(get-client-policy _)
Returns the ClientPolicy used by the AerospikeClient
Returns the ClientPolicy used by the AerospikeClient
(init-simple-aerospike-client hosts aero-ns)
(init-simple-aerospike-client hosts aero-ns conf)
hosts should be a seq of known hosts to bootstrap from supported config: {username: string password: string event-loops: com.aerospike.client.async.NioEventLoops max-commands-in-process: int max-commands-in-queue: int enable-logging: true (default)}
hosts should be a seq of known hosts to bootstrap from supported config: {username: string password: string event-loops: com.aerospike.client.async.NioEventLoops max-commands-in-process: int max-commands-in-queue: int enable-logging: true (default)}
(operate db index set-name expiry record-exists-action & operations)
Asynchronously perform multiple read/write operations on a single key in one batch call. This method registers the command with an event loop and returns. The event loop thread will process the command and send the results to the listener.
Asynchronously perform multiple read/write operations on a single key in one batch call. This method registers the command with an event loop and returns. The event loop thread will process the command and send the results to the listener.
(put db index set-name data expiry)
(put db index set-name data expiry conf)
Writes <data> into a record with the key <index>, with the ttl of <expiry> seconds. Data should be string.
Writes <data> into a record with the key <index>, with the ttl of <expiry> seconds. Data should be string.
(touch db index set-name expiry)
updates the ttl of the record stored under the key of <index> to <expiry> seconds from now.
updates the ttl of the record stored under the key of <index> to <expiry> seconds from now.
(update db index set-name new-record generation new-expiry)
(update db index set-name new-record generation new-expiry conf)
Writing a new value for the key <index>. Generation: the expected modification count of the record (i.e. how many times was it modified before my current action).
Writing a new value for the key <index>. Generation: the expected modification count of the record (i.e. how many times was it modified before my current action).
(write-policy expiry record-exists-action)
Create a write policy to be passed to put methods via {:policy wp} or just pass {:record-exists-action rea} to create one for you.
Create a write policy to be passed to put methods via {:policy wp} or just pass {:record-exists-action rea} to create one for you.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close