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

Function hexistsCommand

src/t_hash.cpp:950–956  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

948}
949
950void hexistsCommand(client *c) {
951 robj_roptr o;
952 if ((o = lookupKeyReadOrReply(c,c->argv[1],shared.czero)) == nullptr ||
953 checkType(c,o,OBJ_HASH)) return;
954
955 addReply(c, hashTypeExists(o,szFromObj(c->argv[2])) ? shared.cone : shared.czero);
956}
957
958void hscanCommand(client *c) {
959 robj_roptr o;

Callers

nothing calls this directly

Calls 5

lookupKeyReadOrReplyFunction · 0.85
checkTypeFunction · 0.85
addReplyFunction · 0.85
hashTypeExistsFunction · 0.85
szFromObjFunction · 0.85

Tested by

no test coverage detected