ZCARD
Syntax
ZCARD key
- Available since:
- Redis CE 1.2.0
- Time complexity:
- O(1)
- ACL categories:
-
@read
,@sortedset
,@fast
,
Returns the sorted set cardinality (number of elements) of the sorted set stored
at key
.