$redis->lRange('key1', 0, -1); " N# F. b& `/ T" P b* m0 c+ u( C% r
$redis->lInsert('key1', Redis::AFTER, 'W', 'value'); ( \ f3 e. a6 H7 i
% F( o, C- b3 J" E8 F
rpoplpush! I9 n3 [8 G7 Z: v$ M* d
返回并删除名称为srckey的list的尾元素,并将该元素添加到名称为dstkey的list的头部* Z9 ~+ M( B t! Z1 Y" l
$redis->delete('x', 'y');+ F+ s d1 P8 c) V0 y, c% y
$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')); ! j+ T$ g4 `9 t, }% ^, }
var_dump($redis->lRange('x', 0, -1));8 v. z; S$ ~$ {) R: N4 F
var_dump($redis->lRange('y', 0, -1)); ! { b( P* E' v S' b