List
RPUSH
Push an element at the end of the list.
Arguments
keybodystrrequired
The key of the list.
elementsbody*List[str]required
One or more elements to push at the end of the list.
Response
intrequired
The length of the list after the push operation.
Example
assert redis.rpush("mylist", "one", "two", "three") == 3assert lrange("mylist", 0, -1) == ["one", "two", "three"]