Skip to main content

SINTERSTORE

Note

Official reference: SINTERSTORE.

Store a set intersection at the destination.

Syntax

SINTERSTORE destination key [key ...]

The result overwrites destination; an empty result removes the destination key.

Results

ReturnRowsContent
Update count--Number of elements in the resulting set.

Example

SADD demo:tags java jdbc
SADD demo:other java
SINTERSTORE demo:common demo:tags demo:other