SUNIONSTORE
Note
Official reference: SUNIONSTORE.
Store a set union at the destination.
Syntax
SUNIONSTORE destination key [key ...]
The result overwrites destination; an empty result removes the destination key.
Results
| Return | Rows | Content |
|---|---|---|
| Update count | -- | Number of elements in the resulting set. |
Example
SADD demo:tags java jdbc
SADD demo:other rust
SUNIONSTORE demo:all demo:tags demo:other