object

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

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

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

use \Kuzzle\Kuzzle;


$kuzzle = new Kuzzle('localhost');

try {
  $property = $kuzzle->memoryStorage()->object('key', 'encoding');
}
catch (ErrorException $e) {

}

Callback response:

"raw"

Inspects the low-level properties of a key.

[Redis documentation]


object(key, subcommand, [options], callback)

ArgumentsTypeDescription
keystringKey identifier
subcommandstringName of the low-level property to inspect.
Allowed values: refcount, encoding, idletime
optionsJSON ObjectOptional parameters
callbackfunctionCallback

Options

OptionTypeDescriptionDefault
queuablebooleanMark this request as (not) queuabletrue

Callback response

Resolves to the value of the inspected property.