redis.sadd("set1", "a", "b", "c"); 
redis.sadd("set2", "c", "d", "e"); 
redis.sunionstore("destination", "set1", "set2")

Arguments

destination
str
required
The key of the set to store the resulting set in.
keys
*List[str]
required
The keys of the sets to perform the union operation on.

Response

The members of the resulting set.
redis.sadd("set1", "a", "b", "c"); 
redis.sadd("set2", "c", "d", "e"); 
redis.sunionstore("destination", "set1", "set2")