redis.sadd("key", "a", "b", "c"); assert redis.scard("key") == 3
Return how many members are in a set
The key of the set.
How many members are in the set.
Was this page helpful?