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

Function zrangebyscoreCommand

src/t_zset.cpp:3262–3266  ·  view source on GitHub ↗

ZRANGEBYSCORE [WITHSCORES] [LIMIT offset count] */

Source from the content-addressed store, hash-verified

3260
3261/* ZRANGEBYSCORE <key> <min> <max> [WITHSCORES] [LIMIT offset count] */
3262void zrangebyscoreCommand(client *c) {
3263 zrange_result_handler handler;
3264 zrangeResultHandlerInit(&handler, c, ZRANGE_CONSUMER_TYPE_CLIENT);
3265 zrangeGenericCommand(&handler, 1, 0, ZRANGE_SCORE, ZRANGE_DIRECTION_FORWARD);
3266}
3267
3268/* ZREVRANGEBYSCORE <key> <min> <max> [WITHSCORES] [LIMIT offset count] */
3269void zrevrangebyscoreCommand(client *c) {

Callers

nothing calls this directly

Calls 2

zrangeResultHandlerInitFunction · 0.85
zrangeGenericCommandFunction · 0.85

Tested by

no test coverage detected