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

Function strlenCommand

src/t_string.cpp:708–713  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

706}
707
708void strlenCommand(client *c) {
709 robj_roptr o;
710 if ((o = lookupKeyReadOrReply(c,c->argv[1],shared.czero)) == nullptr ||
711 checkType(c,o,OBJ_STRING)) return;
712 addReplyLongLong(c,stringObjectLen(o));
713}
714
715
716/* 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