From 594618a67d5c8620bc61c25a3d043d092ceba2a9 Mon Sep 17 00:00:00 2001 From: Vijay-Nirmal Date: Wed, 18 Sep 2024 00:21:48 +0530 Subject: [PATCH] Fixed doc --- website/docs/commands/data-structures.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/docs/commands/data-structures.md b/website/docs/commands/data-structures.md index 9a9e6912d9..ac95227f25 100644 --- a/website/docs/commands/data-structures.md +++ b/website/docs/commands/data-structures.md @@ -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.