Arguments
*List[str]
required
The keys of the sets to perform the union operation on.
Response
The resulting set
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
redis.sadd("key1", "a", "b", "c")
redis.sadd("key2", "c", "d", "e")
assert redis.sunion("key1", "key2") == {"a", "b", "c", "d", "e"}
Return the union between sets
redis.sadd("key1", "a", "b", "c")
redis.sadd("key2", "c", "d", "e")
assert redis.sunion("key1", "key2") == {"a", "b", "c", "d", "e"}
Was this page helpful?