// Using callbacks (NodeJS or Web Browser)
kuzzle.memoryStorage.incrbyfloat('key', -3.14159, function (err, value) {
  // callback called once the action has completed

// Using promises (NodeJS only)
kuzzle.memoryStorage.incrbyfloatPromise('key', -3.14159)
  .then(value => {
    // resolved once the action has completed
kuzzle.memoryStorage.incrbyfloat("key", -3.14159, new ResponseListener<Double>() {
  public void onSuccess(double value) {
    // callback called once the action has completed

  public void onError(JSONObject error) {

use \Kuzzle\Kuzzle;

$kuzzle = new Kuzzle('localhost');

try {
  $value = $kuzzle->memoryStorage()->incrbyfloat('key', -3.14159);
catch (ErrorException $e) {


Callback response:


Increments the number stored at key by the provided float value. If the key does not exist, it is set to 0 before performing the operation.

[Redis documentation]

incrbyfloat(key, value, [options], [callback])

keystringKey identifier
valuedoubleIncrement value
optionsJSON ObjectOptional parameters

Available options:

queuablebooleanMark this request as (not) queuabletrue

Return value

Returns the MemoryStorage object to allow chaining.

Callback response

Resolves to a floating point number containing the updated key value