Arguments
str
required
The key of the list.
int
required
The index of the element to return, zero-based.
Response
The value of the element at index index in the list. If the index is out of range,
None is returned.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
redis.rpush("key", "a", "b", "c")
assert redis.lindex("key", 0) == "a"
Returns the element at index index in the list stored at key.
None is returned.redis.rpush("key", "a", "b", "c")
assert redis.lindex("key", 0) == "a"
Was this page helpful?