Redis ZCARD 命令返回有序集 key 的基数。
ZCARD key
127.0.0.1:6379> ZADD stu:1 90 math 85 English 90 history #创建有集合(integer) 3127.0.0.1:6379> ZRANGE stu:1 0 2 WITHSCORES1) "English"2) "85"3) "history"4) "90"5) "math"6) "90"127.0.0.1:6379> ZCARD stu:1 #有序集合的基数(integer) 3
