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

Function zcardCommand

app/redis-6.2.6/src/t_zset.c:3721–3729  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3719}
3720
3721void zcardCommand(client *c) {
3722 robj *key = c->argv[1];
3723 robj *zobj;
3724
3725 if ((zobj = lookupKeyReadOrReply(c,key,shared.czero)) == NULL ||
3726 checkType(c,zobj,OBJ_ZSET)) return;
3727
3728 addReplyLongLong(c,zsetLength(zobj));
3729}
3730
3731void zscoreCommand(client *c) {
3732 robj *key = c->argv[1];

Callers

nothing calls this directly

Calls 4

lookupKeyReadOrReplyFunction · 0.85
checkTypeFunction · 0.85
addReplyLongLongFunction · 0.85
zsetLengthFunction · 0.85

Tested by

no test coverage detected