Skip to content

Commit

Permalink
Fixed doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Vijay-Nirmal committed Sep 17, 2024
1 parent e81d578 commit 594618a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions website/docs/commands/data-structures.md
Original file line number Diff line number Diff line change
Expand Up @@ -319,12 +319,12 @@ By default, the command pops a single element from the beginning of the list. Wh
---
### LPOP
### LPOS
#### Syntax
```bash
LPOP key [count]
LPOS key element [RANK rank] [COUNT num-matches] [MAXLEN len]
```
The command returns the index of matching elements inside a Redis list. By default, when no options are given, it will scan the list from head to tail, looking for the first match of "element". If the element is found, its index (the zero-based position in the list) is returned. Otherwise, if no match is found, nil is returned.
Expand Down

0 comments on commit 594618a

Please sign in to comment.