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

Function hexistsCommand

app/redis-6.2.6/src/t_hash.c:944–950  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

942}
943
944void hexistsCommand(client *c) {
945 robj *o;
946 if ((o = lookupKeyReadOrReply(c,c->argv[1],shared.czero)) == NULL ||
947 checkType(c,o,OBJ_HASH)) return;
948
949 addReply(c, hashTypeExists(o,c->argv[2]->ptr) ? shared.cone : shared.czero);
950}
951
952void hscanCommand(client *c) {
953 robj *o;

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected