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

Function hgetCommand

src/t_hash.cpp:810–817  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

808}
809
810void hgetCommand(client *c) {
811 robj_roptr o;
812 AeLocker locker;
813 if ((o = lookupKeyReadOrReply(c,c->argv[1],shared.null[c->resp], locker)) == nullptr ||
814 checkType(c,o,OBJ_HASH)) return;
815
816 addHashFieldToReply(c, o, szFromObj(c->argv[2]));
817}
818
819void hmgetCommand(client *c) {
820 robj_roptr o;

Callers

nothing calls this directly

Calls 4

lookupKeyReadOrReplyFunction · 0.85
checkTypeFunction · 0.85
addHashFieldToReplyFunction · 0.85
szFromObjFunction · 0.85

Tested by

no test coverage detected