Arguments
str
required
The key of the list.
*List[str]
required
One or more elements to push at the end of the list.
Response
The length of the list after the push operation.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
assert redis.rpush("mylist", "one", "two", "three") == 3
assert lrange("mylist", 0, -1) == ["one", "two", "three"]
Push an element at the end of the list.
assert redis.rpush("mylist", "one", "two", "three") == 3
assert lrange("mylist", 0, -1) == ["one", "two", "three"]
Was this page helpful?