hkeys

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

// Using promises (NodeJS only)
kuzzle.memoryStorage.hkeysPromise('key')
  .then(fields => {
    // resolved once the action has completed
  });
kuzzle.memoryStorage.hkeys("key", new ResponseListener<String[]>() {
  @Override
  public void onSuccess(String[] fields) {
    // callback called once the action has completed
  }

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

use \Kuzzle\Kuzzle;


$kuzzle = new Kuzzle('localhost');

try {
  $fields = $kuzzle->memoryStorage()->hkeys('key');
}
catch (ErrorException $e) {

}

Callback response:

[
  "field1",
  "field2",
  "..."
]

Returns all field names contained in a hash.

[Redis documentation]


hkeys(key, [options], callback)

ArgumentsTypeDescription
keystringKey identifier
optionsJSON ObjectOptional parameters
callbackfunctionCallback

Options

OptionTypeDescriptionDefault
queuablebooleanMark this request as (not) queuabletrue

Callback response

Resolves an array of field names.