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

Function sscanCommand

src/t_set.cpp:1199–1207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1197}
1198
1199void sscanCommand(client *c) {
1200 robj_roptr set;
1201 unsigned long cursor;
1202
1203 if (parseScanCursorOrReply(c,c->argv[2],&cursor) == C_ERR) return;
1204 if ((set = lookupKeyReadOrReply(c,c->argv[1],shared.emptyscan)) == nullptr ||
1205 checkType(c,set,OBJ_SET)) return;
1206 scanGenericCommand(c,set,cursor);
1207}

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