SUNIONSTORE
Since 1.1.0Sets
Syntax
SUNIONSTORE destination key [key ...]Stores the union of the given sets at destination, replacing whatever was there, and its expiry. An empty result leaves no key at destination.
Reply
- The number of members stored.
Examples
> SADD x a b c d
(integer) 4
> SADD y c d e
(integer) 3
> SUNIONSTORE u x y
(integer) 5