Arguments
str
required
The key of the set to store the resulting set in.
*List[str]
required
The keys of the sets to perform the union operation on.
Response
The members of 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("set1", "a", "b", "c");
redis.sadd("set2", "c", "d", "e");
redis.sunionstore("destination", "set1", "set2")
Return the union between sets and store the resulting set in a key
redis.sadd("set1", "a", "b", "c");
redis.sadd("set2", "c", "d", "e");
redis.sunionstore("destination", "set1", "set2")
Was this page helpful?