Upstash Documentation home page
Search or ask...
Discord
Blog
Twitter
Console
Console
Search...
Navigation
List
LTRIM
Overview
Redis
Vector
QStash
Workflow
Kafka
Developer API
Overall
Quickstarts
Features
SDKs
Typescript
Overview
Get Started
Commands
Overview
Auth
Bitmap
Generic
Hash
Json
List
LINDEX
LINSERT
LLEN
LMOVE
LPOP
LPOS
LPUSH
LPUSHX
LRANGE
LREM
LSET
LTRIM
RPOP
RPUSH
RPUSHX
PubSub
Scripts
Server
Set
Sorted Set
Stream
String
Transactions
Deployment
Pipelining
Advanced
Retries
Troubleshooting
Developing or Testing
Python
Ratelimit (TS)
Ratelimit (PY)
How To
Integrations
Tutorials
Troubleshooting
Help
List
LTRIM
Trim a list to the specified range
Arguments
key
string
required
The key of the list.
start
number
required
The index of the first element to keep.
end
TValue
required
The index of the first element to keep.
Response
OK
LSET
RPOP