MCPcopy Create free account
hub / github.com/F-Stack/f-stack / zrangeCommand

Function zrangeCommand

app/redis-6.2.6/src/t_zset.c:3130–3134  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

zrangeResultHandlerInitFunction · 0.85
zrangeGenericCommandFunction · 0.85

Tested by

no test coverage detected