SDIFFSTORE
Note
Official reference: SDIFFSTORE.
Store a set difference at the destination.
Syntax
SDIFFSTORE destination key [key ...]
The result overwrites destination; an empty result removes the destination key.
Results
| Return | Rows | Content |
|---|---|---|
| Update count | -- | Number of elements in the resulting set. |
Example
SADD demo:tags java jdbc
SADD demo:other java
SDIFFSTORE demo:diff demo:tags demo:other