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

Function zscanCommand

src/t_zset.cpp:3788–3796  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3786}
3787
3788void zscanCommand(client *c) {
3789 robj_roptr o;
3790 unsigned long cursor;
3791
3792 if (parseScanCursorOrReply(c,c->argv[2],&cursor) == C_ERR) return;
3793 if ((o = lookupKeyReadOrReply(c,c->argv[1],shared.emptyscan)) == nullptr ||
3794 checkType(c,o,OBJ_ZSET)) return;
3795 scanGenericCommand(c,o,cursor);
3796}
3797
3798/* This command implements the generic zpop operation, used by:
3799 * ZPOPMIN, ZPOPMAX, BZPOPMIN and BZPOPMAX. This function is also used

Callers

nothing calls this directly

Calls 4

parseScanCursorOrReplyFunction · 0.85
lookupKeyReadOrReplyFunction · 0.85
checkTypeFunction · 0.85
scanGenericCommandFunction · 0.85

Tested by

no test coverage detected