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

Function scanCommand

src/db.cpp:1413–1417  ·  view source on GitHub ↗

The SCAN command completely relies on scanGenericCommand. */

Source from the content-addressed store, hash-verified

1411
1412/* The SCAN command completely relies on scanGenericCommand. */
1413void scanCommand(client *c) {
1414 unsigned long cursor;
1415 if (parseScanCursorOrReply(c,c->argv[1],&cursor) == C_ERR) return;
1416 scanGenericCommand(c,nullptr,cursor);
1417}
1418
1419void dbsizeCommand(client *c) {
1420 addReplyLongLong(c,c->db->size());

Callers

nothing calls this directly

Calls 2

parseScanCursorOrReplyFunction · 0.85
scanGenericCommandFunction · 0.85

Tested by

no test coverage detected