SCARD

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

Redict logo courtesy of @janWilejan, CC-BY-SA-4.0. Download SVG ⤑

Portions of this website courtesy of Salvatore Sanfilippo, CC-BY-SA-4.0.