Skip to content

Latest commit

 

History

History
43 lines (28 loc) · 1.2 KB

File metadata and controls

43 lines (28 loc) · 1.2 KB
code type title
true
page
sunionstore

sunionstore

Computes the union of multiple sets of unique values and stores it in a new set.

If the destination key already exists, it is overwritten.

[Redis documentation]

Arguments

sunionstore(dest, sources, [options]);

Arguments Type Description
key
string
Union target key
sources
string[]
List of set keys
options
object
Optional query arguments

options

The options arguments can contain the following option properties:

Property Type (default) Description
queuable
boolean (true)
If true, queues the request during downtime, until connected to Kuzzle again

Resolve

Resolves to the number of values added to the destination key.

Usage

<<< ./snippets/sunionstore.js