Arguments
string
required
The key of the set.
...TValue[]
required
One or more members to add to the set.
Response
The number of elements that were added to the set, not including all the elements already present in the set.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
// 3
await redis.sadd("key", "a", "b", "c");
// 0
await redis.sadd("key", "a", "b");
Adds one or more members to a set.
// 3
await redis.sadd("key", "a", "b", "c");
// 0
await redis.sadd("key", "a", "b");
Was this page helpful?