Skip to main content

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

ReturnRowsContent
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