Skip to content

Commit

Permalink
indices -> indexes, remove extra words
Browse files Browse the repository at this point in the history
  • Loading branch information
sav-norem authored Jul 25, 2023
1 parent a605fed commit bca8041
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/data-types/lists.md
Original file line number Diff line number Diff line change
Expand Up @@ -239,9 +239,9 @@ OK

The above `LTRIM` command tells Redis to keep just list elements from index
0 to 2, everything else will be discarded. This allows for a very simple but
useful pattern: doing a List push operation + a List trim operation together
in order to add a new element and discard elements exceeding a limit. Using
`LTRIM` with negative indices can then be used to keep only the 3 most recently added:
useful pattern: doing a List push operation + a List trim operation together
to add a new element and discard elements exceeding a limit. Using
`LTRIM` with negative indexes can then be used to keep only the 3 most recently added:

{{< clients-example list_tutorial ltrim_end_of_list >}}
> RPUSH bikes:repairs bike:1 bike:2 bike:3 bike:4 bike:5
Expand Down

0 comments on commit bca8041

Please sign in to comment.