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

Function zrangestoreCommand

src/t_zset.cpp:3120–3126  ·  view source on GitHub ↗

ZRANGESTORE [BYSCORE | BYLEX] [REV] [LIMIT offset count] */

Source from the content-addressed store, hash-verified

3118
3119/* ZRANGESTORE <dst> <src> <min> <max> [BYSCORE | BYLEX] [REV] [LIMIT offset count] */
3120void zrangestoreCommand (client *c) {
3121 robj *dstkey = c->argv[1];
3122 zrange_result_handler handler;
3123 zrangeResultHandlerInit(&handler, c, ZRANGE_CONSUMER_TYPE_INTERNAL);
3124 zrangeResultHandlerDestinationKeySet(&handler, dstkey);
3125 zrangeGenericCommand(&handler, 2, 1, ZRANGE_AUTO, ZRANGE_DIRECTION_AUTO);
3126}
3127
3128/* ZRANGE <key> <min> <max> [BYSCORE | BYLEX] [REV] [WITHSCORES] [LIMIT offset count] */
3129void zrangeCommand(client *c) {

Callers

nothing calls this directly

Calls 3

zrangeResultHandlerInitFunction · 0.85
zrangeGenericCommandFunction · 0.85

Tested by

no test coverage detected