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

Function zrevrangeCommand

src/t_zset.cpp:3136–3140  ·  view source on GitHub ↗

ZREVRANGE [WITHSCORES] */

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

zrangeResultHandlerInitFunction · 0.85
zrangeGenericCommandFunction · 0.85

Tested by

no test coverage detected