diff --git a/website/docs/commands/api-compatibility.md b/website/docs/commands/api-compatibility.md index 92f5606a4c..3c92980946 100644 --- a/website/docs/commands/api-compatibility.md +++ b/website/docs/commands/api-compatibility.md @@ -213,8 +213,8 @@ Note that this list is subject to change as we continue to expand our API comman | | [TIME](server.md#time) | ➕ | | | **SET** | [SADD](data-structures.md#sadd) | ➕ | | | | [SCARD](data-structures.md#scard) | ➕ | | -| | SDIFF | ➖ | | -| | SDIFFSTORE | ➖ | | +| | [SDIFF](data-structures.md#sdiff) | ➕ | | +| | [SDIFFSTORE](data-structures.md#sdiffstore) | ➕ | | | | SINTER | ➖ | | | | SINTERCARD | ➖ | | | | SINTERSTORE | ➖ | | diff --git a/website/docs/commands/data-structures.md b/website/docs/commands/data-structures.md index 21bdf0a4f7..76f24f89b5 100644 --- a/website/docs/commands/data-structures.md +++ b/website/docs/commands/data-structures.md @@ -480,6 +480,34 @@ The **match** parameter allows to apply a filter to elements after they have bee --- +### SDIFF + +#### Syntax + +```bash + SDIFF key [key ...] +``` + +Returns the members of the set resulting from the difference between the **first** set and all the successive sets. + +**Keys** that do not exist are considered to be empty sets. + +--- + +### SDIFFSTORE + +#### Syntax + +```bash + SDIFFSTORE destination key [key ...] +``` + +This command is equal to [SDIFF](#SDIFF), but instead of returning the resulting set, it is stored in **destination**. + +If **destination** already exists, it is overwritten. + +--- + ## Sorted Set ### ZADD