sinter

// Using callbacks (NodeJS or Web Browser)
kuzzle.memoryStorage.sinter(['key1', 'key2', '...'], function (err, values) {
  // callback called once the action has completed
});

// Using promises (NodeJS only)
kuzzle.memoryStorage.sinterPromise(['key1', 'key2', '...'])
  .then(values => {
    // resolved once the action has completed
  });
String[] keys = new String[]{"key1", "key2", "..."};

kuzzle.memoryStorage.sinter(keys, new ResponseListener<String[]>() {
  @Override
  public void onSuccess(String[] values) {
    // callback called once the action has completed
  }

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

use \Kuzzle\Kuzzle;


$kuzzle = new Kuzzle('localhost');

try {
  $values = $kuzzle->memoryStorage()->sinter(['key1', 'key2', '...']);
}
catch (ErrorException $e) {

}

Callback response:

[
  "intersection value1",
  "intersection value2",
  "..."
]

Returns the intersection of the provided sets of unique values.

[Redis documentation]


sinter(keys, [options], callback)

ArgumentsTypeDescription
keysstringList of sets of unique values to intersect
optionsJSON ObjectOptional parameters
callbackfunctionCallback

Options

OptionTypeDescriptionDefault
queuablebooleanMark this request as (not) queuabletrue

Callback response

Resolves to an array of the values in the computed intersection.