Skip to main content

Documentation Index

Fetch the complete documentation index at: https://upstash.com/docs/llms.txt

Use this file to discover all available pages before exploring further.

Arguments

key
string
required
The key of the set.
members
...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.
// 3
await redis.sadd("key", "a", "b", "c"); 

// 0
await redis.sadd("key", "a", "b");