Adds one or more members to a set.
// 3 await redis.sadd("key", "a", "b", "c"); // 0 await redis.sadd("key", "a", "b");
The key of the set.
One or more members to add to the set.
The number of elements that were added to the set, not including all the elements already present in the set.
Was this page helpful?