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

Function zrevrangeCommand

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

ZREVRANGE [WITHSCORES] */

Source from the content-addressed store, hash-verified

3135
3136/* ZREVRANGE <key> <min> <max> [WITHSCORES] */
3137void zrevrangeCommand(client *c) {
3138 zrange_result_handler handler;
3139 zrangeResultHandlerInit(&handler, c, ZRANGE_CONSUMER_TYPE_CLIENT);
3140 zrangeGenericCommand(&handler, 1, 0, ZRANGE_RANK, ZRANGE_DIRECTION_REVERSE);
3141}
3142
3143/* This command implements ZRANGEBYSCORE, ZREVRANGEBYSCORE. */
3144void genericZrangebyscoreCommand(zrange_result_handler *handler,

Callers

nothing calls this directly

Calls 2

zrangeResultHandlerInitFunction · 0.85
zrangeGenericCommandFunction · 0.85

Tested by

no test coverage detected