Typescript
Python
upstash-ratelimit
upstash-vector
upstash-redis
Commands
Auth
Bitmap
Generic
Hash
Json
List
PubSub
Scripts
Server
Set
Sorted Set
String
upstash-qstash
Terraform
Pulumi
CLI
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?