Skip to main content

Documentation Index

Fetch the complete documentation index at: https://upstash.com/docs/llms.txt

Use this file to discover all available pages before exploring further.

Arguments

source
string
required
The key of the source list.
destination
string
required
The key of the destination list.
from
"left" | "right"
required
The side of the source list from which the element was popped.
to
"left" | "right"
required
The side of the destination list to which the element was pushed.

Response

The element that was moved.
 await redis.rpush("source", "a", "b", "c"); 
 const element = await redis.move("source", "destination", "left", "left");