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

Function zrangestoreCommand

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

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

zrangeResultHandlerInitFunction · 0.85
zrangeGenericCommandFunction · 0.85

Tested by

no test coverage detected