Redis.scard

Return the set cardinality (number of elements). If the key does not exist 0 is returned, like for empty sets. @param key @return Integer reply, specifically: the cardinality (number of elements) of the set as an integer.

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

Meta