assert redis.lpush("mylist", "one", "two", "three") == 3 assert lrange("mylist", 0, -1) == ["three", "two", "one"]
Push an element at the head of the list.
Was this page helpful?