This is the semantic of this command: * RPOPLPUSH srclist dstlist: * IF LLEN(srclist) > 0 * element = RPOP srclist * LPUSH dstlist element * RETURN element * ELSE * RETURN nil * END * END * * The idea is to be able to get an element from a list in a reliable way * since the element is not just returned but pushed against another list * as well. This comm
| 847 | * as well. This command was originally proposed by Ezra Zygmuntowicz. |
| 848 | */ |
| 849 | void rpoplpushCommand(client *c) { |
| 850 | lmoveGenericCommand(c, LIST_TAIL, LIST_HEAD); |
| 851 | } |
| 852 | |
| 853 | /*----------------------------------------------------------------------------- |
| 854 | * Blocking POP operations |
nothing calls this directly
no test coverage detected