ZCARD key
Time complexity: O(1)
Integer reply: the cardinality (number of elements) of the sorted set, or if does not exist.
*Examples
redis> ZADD myzset 2 "two"
Time complexity: O(1)
Integer reply: the cardinality (number of elements) of the sorted set, or if does not exist.
redis> ZADD myzset 2 "two"
本文档使用 全库网 构建