Skip to main content

ZUNIONSTORE

Writes the union between sets to a new key.
1 min read

Arguments#

destinationstringrequired#

The key to write the union to.

keysintegerrequired#

How many keys to compare.

keysstring | string[]required#

The keys to compare.

options#
aggregatesum | min | max#

The aggregation method.

weightnumber#

The weight to apply to each key.

weightsnumber[]#

The weights to apply to each key.

Response#

required

The number of elements in the resulting set.

Was this page helpful?