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

Function hstrlenCommand

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

Source from the content-addressed store, hash-verified

865}
866
867void hstrlenCommand(client *c) {
868 robj *o;
869
870 if ((o = lookupKeyReadOrReply(c,c->argv[1],shared.czero)) == NULL ||
871 checkType(c,o,OBJ_HASH)) return;
872 addReplyLongLong(c,hashTypeGetValueLength(o,c->argv[2]->ptr));
873}
874
875static void addHashIteratorCursorToReply(client *c, hashTypeIterator *hi, int what) {
876 if (hi->encoding == OBJ_ENCODING_ZIPLIST) {

Callers

nothing calls this directly

Calls 4

lookupKeyReadOrReplyFunction · 0.85
checkTypeFunction · 0.85
addReplyLongLongFunction · 0.85
hashTypeGetValueLengthFunction · 0.85

Tested by

no test coverage detected