code | type | title | description |
---|---|---|---|
true |
page |
sunionstore |
MemoryStorage: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.
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 |
Option | Type | Description | Default |
---|---|---|---|
queuable |
boolean | Make this request queuable or not | true |
Returns an integer containing the number of elements in the stored union.
<<< ./snippets/sunionstore-1.java
Callback response:
4