Redis.zcard

Return the sorted set cardinality (number of elements). If the key does not exist 0 is returned, like for empty sorted sets. <p> Time complexity O(1) @param key @return the cardinality (number of elements) of the set as an integer.

  1. Long zcard(string key)
    class Redis
    Long
    zcard
    (
    string key
    )
  2. alias zcard = BinaryRedis.zcard

Meta