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