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