SCARD
SCARD key
- Available since
- 1.0.0
- Time complexity
- O(1)
- ACL categories
- @read, @set, @fast
Returns the set cardinality (number of elements) of the set stored at key
.
Examples #
SADD myset "Hello"
SADD myset "World"
SCARD myset
SCARD key
Returns the set cardinality (number of elements) of the set stored at key
.
SADD myset "Hello"
SADD myset "World"
SCARD myset