List
LMOVE
Move an element from one list to another.
Arguments
sourcebodystringrequired
The key of the source list.
destinationbodystringrequired
The key of the destination list.
frombody"left" | "right"required
The side of the source list from which the element was popped.
tobody"left" | "right"required
The side of the destination list to which the element was pushed.
Response
TValuerequired
The element that was moved.
Example
await redis.rpush("source", "a", "b", "c"); const element = await redis.move("source", "destination", "left", "left");