Unknown SDK


Identical to zrangebylex except that the sorted set is traversed in descending order.

[Redis documentation]

zrevrangebylex(key, min, max, [options], [callback])

Arguments Type Description
key string Key identifier
min string Minimum member value (inclusive by default)
max string Maximum member value (inclusive by default)
options JSON Object Optional parameters
callback function Callback


Option Type Description Default
limit array Limit the result set to a range of matching elements (similar to SELECT LIMIT offset, count in SQL).
Format: [<offset(int)>, <count(int)>]
queuable boolean Make this request queuable or not true

Return Value

Returns the MemoryStorage object to allow chaining.

Callback Response

Returns an array of matching members.


Copied to clipboard!
use \Kuzzle\Kuzzle;
$kuzzle = new Kuzzle('localhost');
try {
  $members = $kuzzle->memoryStorage()->zrevrangebylex('key', '-', '(g');
catch (ErrorException $e) {

Callback response:

Copied to clipboard!
["member1", "member2", "..."]