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

Function hlenCommand

src/t_hash.cpp:863–870  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

861}
862
863void hlenCommand(client *c) {
864 robj_roptr o;
865
866 if ((o = lookupKeyReadOrReply(c,c->argv[1],shared.czero)) == nullptr ||
867 checkType(c,o,OBJ_HASH)) return;
868
869 addReplyLongLong(c,hashTypeLength(o));
870}
871
872void hstrlenCommand(client *c) {
873 robj_roptr o;

Callers

nothing calls this directly

Calls 4

lookupKeyReadOrReplyFunction · 0.85
checkTypeFunction · 0.85
addReplyLongLongFunction · 0.85
hashTypeLengthFunction · 0.85

Tested by

no test coverage detected