Arguments
str
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.
assert redis.sadd("key", "a", "b", "c") == 3
Adds one or more members to a set.
assert redis.sadd("key", "a", "b", "c") == 3
Was this page helpful?