Skip to content
This repository has been archived by the owner on Sep 28, 2022. It is now read-only.

Latest commit

 

History

History
49 lines (32 loc) · 1.24 KB

File metadata and controls

49 lines (32 loc) · 1.24 KB
code type title description
true
page
sunionstore
MemoryStorage:sunionstore

sunionstore

Computes the union of the provided sets of unique values and stores the result in the destination key.

If the destination key already exists, it is overwritten.

[Redis documentation]


sunionstore(destination, keys, [options], callback)

Arguments Type Description
destination string Destination key identifier
keys string List of sets of unique values to intersect
options JSON Object Optional parameters
callback function Callback

Options

Option Type Description Default
queuable boolean Make this request queuable or not true

Callback Response

Returns an integer containing the number of elements in the stored union.

Usage

<<< ./snippets/sunionstore-1.java

Callback response:

4