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

Function zrevrangebyscoreCommand

src/t_zset.cpp:3269–3273  ·  view source on GitHub ↗

ZREVRANGEBYSCORE [WITHSCORES] [LIMIT offset count] */

Source from the content-addressed store, hash-verified

3267
3268/* ZREVRANGEBYSCORE <key> <min> <max> [WITHSCORES] [LIMIT offset count] */
3269void zrevrangebyscoreCommand(client *c) {
3270 zrange_result_handler handler;
3271 zrangeResultHandlerInit(&handler, c, ZRANGE_CONSUMER_TYPE_CLIENT);
3272 zrangeGenericCommand(&handler, 1, 0, ZRANGE_SCORE, ZRANGE_DIRECTION_REVERSE);
3273}
3274
3275void zcountCommand(client *c) {
3276 robj *key = c->argv[1];

Callers

nothing calls this directly

Calls 2

zrangeResultHandlerInitFunction · 0.85
zrangeGenericCommandFunction · 0.85

Tested by

no test coverage detected