RPUSH key element [element …]
Time complexity: O(1) for each element added, so O(N) to add N elements when the command is called with multiple arguments.
It is possible to push multiple elements using a single command call just specifying multiple arguments at the end of the command. Elements are inserted one after the other to the tail of the list, from the leftmost element to the rightmost element. So for instance the command will result into a list containing a
as first element, b
as second element and as third element.
redis> RPUSH mylist "hello"
redis> LRANGE mylist 0 -1
redis>