Push an element at the head of the list.
assert redis.lpush("mylist", "one", "two", "three") == 3 assert lrange("mylist", 0, -1) == ["three", "two", "one"]
The key of the list.
One or more elements to push at the head of the list.
The length of the list after the push operation.
Was this page helpful?