Skip to content

Latest commit

 

History

History
43 lines (28 loc) · 1.22 KB

File metadata and controls

43 lines (28 loc) · 1.22 KB
code type title
true
page
sinterstore

sinterstore

Computes the intersection of the provided sets of unique values, and stores the result in a destination key.

If the destination key already exists, it is overwritten.

[Redis documentation]

Arguments

sinterstore(dest, keys, [options]);

Arguments Type Description
dest
string
Destination key
keys
string[]
List of set keys to intersect
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 stored values.

Usage

<<< ./snippets/sinterstore.js