MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / zrevrangebylexCommand

Function zrevrangebylexCommand

src/t_zset.cpp:3554–3558  ·  view source on GitHub ↗

ZREVRANGEBYLEX [LIMIT offset count] */

Source from the content-addressed store, hash-verified

3552
3553/* ZREVRANGEBYLEX <key> <min> <max> [LIMIT offset count] */
3554void zrevrangebylexCommand(client *c) {
3555 zrange_result_handler handler;
3556 zrangeResultHandlerInit(&handler, c, ZRANGE_CONSUMER_TYPE_CLIENT);
3557 zrangeGenericCommand(&handler, 1, 0, ZRANGE_LEX, ZRANGE_DIRECTION_REVERSE);
3558}
3559
3560/**
3561 * This function handles ZRANGE and ZRANGESTORE, and also the deprecated

Callers

nothing calls this directly

Calls 2

zrangeResultHandlerInitFunction · 0.85
zrangeGenericCommandFunction · 0.85

Tested by

no test coverage detected