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

Function hscanCommand

src/t_hash.cpp:958–967  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

956}
957
958void hscanCommand(client *c) {
959 robj_roptr o;
960 unsigned long cursor;
961 AeLocker locker;
962
963 if (parseScanCursorOrReply(c,c->argv[2],&cursor) == C_ERR) return;
964 if ((o = lookupKeyReadOrReply(c,c->argv[1],shared.emptyscan,locker)) == nullptr ||
965 checkType(c,o,OBJ_HASH)) return;
966 scanGenericCommand(c,o,cursor);
967}
968
969void hrenameCommand(client *c) {
970 robj *o = nullptr;

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