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

Function hgetCommand

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

Source from the content-addressed store, hash-verified

804}
805
806void hgetCommand(client *c) {
807 robj *o;
808
809 if ((o = lookupKeyReadOrReply(c,c->argv[1],shared.null[c->resp])) == NULL ||
810 checkType(c,o,OBJ_HASH)) return;
811
812 addHashFieldToReply(c, o, c->argv[2]->ptr);
813}
814
815void hmgetCommand(client *c) {
816 robj *o;

Callers

nothing calls this directly

Calls 3

lookupKeyReadOrReplyFunction · 0.85
checkTypeFunction · 0.85
addHashFieldToReplyFunction · 0.85

Tested by

no test coverage detected