Upstash · Method
Redis.fromEnv
Use a Redis list as a FIFO queue with LPUSH and RPOP. For reliable processing, atomically move tasks to a processing list with LMOVE and remove them only after success.
Last updated
Syntax
LPUSH queue task
RPOP queue
LRANGE queue -1 -1
LLEN queue
LMOVE source destination RIGHT LEFT
LREM processing 1 taskIn-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
LPUSHRPOPLRANGELLENLMOVELREMRedis.fromEnv@upstash/redis