zscore

// Using callbacks (NodeJS or Web Browser)
kuzzle.memoryStorage.zscore('key', 'bar', function (err, score) {
  // callback called once the action has completed
});

// Using promises (NodeJS only)
kuzzle.memoryStorage.zscorePromise('key', 'bar')
  .then(score => {
    // resolved once the action has completed
  });
kuzzle.memoryStorage.zscore("key", "bar", new ResponseListener<Double>() {
  @Override
  public void onSuccess(double score) {
    // callback called once the action has completed
  }

  @Override
  public void onError(JSONObject error) {
  }
});
<?php

use \Kuzzle\Kuzzle;


$kuzzle = new Kuzzle('localhost');

try {
  $score = $kuzzle->memoryStorage()->zscore('key', 'bar');
}
catch (ErrorException $e) {

}

Callback response:

1

Returns the score of a member in a sorted set.

[Redis documentation]


zscore(key, member, [options], callback)

ArgumentsTypeDescription
keystringKey identifier
memberstringSorted set member
optionsJSON ObjectOptional parameters
callbackfunctionCallback

Options

OptionTypeDescriptionDefault
queuablebooleanMark this request as (not) queuabletrue

Callback response

Resolves to a floating point number containing the searched member's score.