Redis 怎么 用事物multi ?

报错:
FatalErrorException in HomeController.php line 36:
Call to undefined method Predis\Response\Status::zrevrange()

代码:
$categoryArr = [15,16,19,18];

// if(!$categoryArr){
// $categoryArr = $this->objMasterBLL->getCategoryJcsx(['A','B','H','D']);
// //$redis->set('category_jcsk_id',serialize($categoryArr));
// }
$multi = Redis::multi();

foreach ($categoryArr as $k => $v) {
$multi->zrevrange('VIDEO:' . $v, 0, 0, true);
}
$keys = $multi->exec();
dd($keys);
已邀请:

要回复问题请先登录注册