List
LMOVE
Move an element from one list to another.
await redis.rpush("source", "a", "b", "c");
const element = await redis.move("source", "destination", "left", "left");
Arguments
source
string
requiredThe key of the source list.
destination
string
requiredThe key of the destination list.
from
"left" | "right"
requiredThe side of the source list from which the element was popped.
to
"left" | "right"
requiredThe 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");