X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/7f4e28e75046104599a5d83c493fdfd78f93ab49..6e0e5bedd9c3a4bf0f53f43c427c88e2866bda0a:/doc/LindexCommand.html diff --git a/doc/LindexCommand.html b/doc/LindexCommand.html index 8116338a..4af80530 100644 --- a/doc/LindexCommand.html +++ b/doc/LindexCommand.html @@ -16,7 +16,7 @@
-LindexCommand: Contents
  LINDEX _key_ _index_
    Return value
    See also +LindexCommand: Contents
  LINDEX _key_ _index_
    Return value

LindexCommand

@@ -26,12 +26,12 @@
-

LINDEX _key_ _index_

+ #sidebar ListCommandsSidebar

LINDEX _key_ _index_

Time complexity: O(n) (with n being the length of the list)
Return the specified element of the list stored at the specifiedkey. 0 is the first element, 1 the second and so on. Negative indexesare supported, for example -1 is the last element, -2 the penultimateand so on.
If the value stored at key is not of list type an error is returned.If the index is out of range an empty string is returned.
Note that even if the average time complexity is O(n) asking forthe first or the last element of the list is O(1).
-

Return value

Bulk reply, specifically the requested element.

See also

- +

Return value

Bulk reply, specifically the requested element. +