Skip to content

Commit

Permalink
edit api doc.
Browse files Browse the repository at this point in the history
  • Loading branch information
tisilent committed Apr 1, 2024
1 parent 61cace5 commit e26aefc
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 2 deletions.
4 changes: 2 additions & 2 deletions website/docs/commands/api-compatibility.md
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,8 @@ Note that this list is subject to change as we continue to expand our API comman
| | [TIME](server.md#time) || |
| <span id="set">**SET**</span> | [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 || |
Expand Down
28 changes: 28 additions & 0 deletions website/docs/commands/data-structures.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e26aefc

Please sign in to comment.