Returns the number of elements in the sorted set stored at key.
redis.zadd("myset", {"one": 1, "two": 2, "three": 3}) assert redis.zcard("myset") == 3
The key to get.
The number of elements in the sorted set.
Was this page helpful?