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

Function zscanCommand

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

Source from the content-addressed store, hash-verified

3788}
3789
3790void zscanCommand(client *c) {
3791 robj *o;
3792 unsigned long cursor;
3793
3794 if (parseScanCursorOrReply(c,c->argv[2],&cursor) == C_ERR) return;
3795 if ((o = lookupKeyReadOrReply(c,c->argv[1],shared.emptyscan)) == NULL ||
3796 checkType(c,o,OBJ_ZSET)) return;
3797 scanGenericCommand(c,o,cursor);
3798}
3799
3800/* This command implements the generic zpop operation, used by:
3801 * 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