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

Function zrangeCommand

src/t_zset.cpp:3129–3133  ·  view source on GitHub ↗

ZRANGE [BYSCORE | BYLEX] [REV] [WITHSCORES] [LIMIT offset count] */

Source from the content-addressed store, hash-verified

3127
3128/* ZRANGE <key> <min> <max> [BYSCORE | BYLEX] [REV] [WITHSCORES] [LIMIT offset count] */
3129void zrangeCommand(client *c) {
3130 zrange_result_handler handler;
3131 zrangeResultHandlerInit(&handler, c, ZRANGE_CONSUMER_TYPE_CLIENT);
3132 zrangeGenericCommand(&handler, 1, 0, ZRANGE_AUTO, ZRANGE_DIRECTION_AUTO);
3133}
3134
3135/* ZREVRANGE <key> <min> <max> [WITHSCORES] */
3136void zrevrangeCommand(client *c) {

Callers

nothing calls this directly

Calls 2

zrangeResultHandlerInitFunction · 0.85
zrangeGenericCommandFunction · 0.85

Tested by

no test coverage detected