返回并删除名称为srckey的list的尾元素,并将该元素添加到名称为dstkey的list的头部) w) @* K X- w1 n
$redis->delete('x', 'y');1 z' Y& n% h4 _% \7 v" v
$redis->lPush('x', 'abc'); $redis->lPush('x', 'def'); $redis->lPush('y', '123'); $redis->lPush('y', '456'); // move the last of x to the front of y. var_dump($redis->rpoplpush('x', 'y'));7 ?. y% |2 @7 x1 D# c5 T/ j7 l
var_dump($redis->lRange('x', 0, -1)); 3 |1 l, G$ U; j1 u