Set
SUNIONSTORE
Return the union between sets and store the resulting set in a key
Arguments
destinationbodystrrequired
The key of the set to store the resulting set in.
keysbody*List[str]required
The keys of the sets to perform the union operation on.
Response
set[str]required
The members of the resulting set.
Example
redis.sadd("set1", "a", "b", "c"); redis.sadd("set2", "c", "d", "e"); redis.sunionstore("destination", "set1", "set2")