Skip to content

Commit

Permalink
[Docs] Added documentation for SMOVE and LMPOP command (#733)
Browse files Browse the repository at this point in the history
* Added doc for SMOVE

* Added LMPOP

---------

Co-authored-by: Badrish Chandramouli <[email protected]>
  • Loading branch information
Vijay-Nirmal and badrishc authored Oct 17, 2024
1 parent 6e76b25 commit a34a08f
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 3 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 @@ -217,7 +217,7 @@ Note that this list is subject to change as we continue to expand our API comman
| | [LINSERT](data-structures.md#linsert) || |
| | [LLEN](data-structures.md#llen) || |
| | [LMOVE](data-structures.md#lmove) || |
| | LMPOP | | |
| | [LMPOP](data-structures.md#lmpop) | | |
| | [LPOP](data-structures.md#lpop) || |
| | [LPOS](data-structures.md#lpos) || |
| | [LPUSH](data-structures.md#lpush) || |
Expand Down Expand Up @@ -304,7 +304,7 @@ Note that this list is subject to change as we continue to expand our API comman
| | [SISMEMBER](data-structures.md#sismember) || |
| | [SMEMBERS](data-structures.md#smembers) || |
| | SMISMEMBER || |
| | SMOVE | | |
| | [SMOVE](data-structures.md#smove) | | |
| | [SPOP](data-structures.md#spop) || |
| | SPUBLISH || |
| | [SRANDMEMBER](data-structures.md#srandmember) || |
Expand Down
26 changes: 25 additions & 1 deletion website/docs/commands/data-structures.md
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ Returns the length of the list stored at key. If key does not exist, it is inter
---
### LMOVE {#lmove}
### LMOVE
#### Syntax
Expand All @@ -307,6 +307,18 @@ This command comes in place of the now deprecated RPOPLPUSH. Doing LMOVE RIGHT L
---
### LMPOP
#### Syntax
```bash
LMPOP numkeys key [key ...] <LEFT | RIGHT> [COUNT count]
```
Pops one or more elements from the first non-empty list key from the list of provided key names.
---
### LPOP
#### Syntax
Expand Down Expand Up @@ -511,6 +523,18 @@ Returns all the members of the set value stored at **key**.
---
### SMOVE
#### Syntax
```bash
SMOVE source destination member
```
Move member from the set at source to the set at destination. This operation is atomic. In every given moment the element will appear to be a member of source or destination for other clients.
---
### SPOP
#### Syntax
Expand Down

0 comments on commit a34a08f

Please sign in to comment.