ZCARD key

    Time complexity: O(1)

    : the cardinality (number of elements) of the sorted set, or if does not exist.

    *Examples

    redis> ZADD myzset 2 "two"

    redis>