Set
SCARD
Return how many members are in a set
Arguments
keybodystrrequired
The key of the set.
Response
intrequired
How many members are in the set.
Example
redis.sadd("key", "a", "b", "c"); assert redis.scard("key") == 3Return how many members are in a set
The key of the set.
How many members are in the set.
redis.sadd("key", "a", "b", "c"); assert redis.scard("key") == 3