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

Function strlenCommand

app/redis-6.2.6/src/t_string.c:705–710  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

703}
704
705void strlenCommand(client *c) {
706 robj *o;
707 if ((o = lookupKeyReadOrReply(c,c->argv[1],shared.czero)) == NULL ||
708 checkType(c,o,OBJ_STRING)) return;
709 addReplyLongLong(c,stringObjectLen(o));
710}
711
712
713/* STRALGO -- Implement complex algorithms on strings.

Callers

nothing calls this directly

Calls 4

lookupKeyReadOrReplyFunction · 0.85
checkTypeFunction · 0.85
addReplyLongLongFunction · 0.85
stringObjectLenFunction · 0.85

Tested by

no test coverage detected