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"}
The keys of the sets to perform the union operation on.
The resulting set
Was this page helpful?