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