[英]Redis scan family commands via laravel?
I am new to using Laravel and Redis together. 我是一起使用Laravel和Redis的新手。 I'm trying to run the Redis command
zscan
: 我正在尝试运行Redis命令
zscan
:
$redis = Redis::connection();
$redis->zscan('zset', 0, 'mor*'));
but when I do, I get the message: 但是当我这样做时,我得到消息:
'zscan' is not a registered Redis command
Does anyone have any idea why? 有谁知道为什么吗?
Laravel 4 uses the Predis Redis driver (look at the composer.json file to check that). Laravel 4使用Predis Redis驱动程序(请查看composer.json文件进行检查)。 The Zscan command was added to Predis 0.8.5.
Zscan命令已添加到Predis 0.8.5。
Use 采用
composer show -i
To check the installed version, and ensure the Predis installed version is at least 0.8.5. 要检查安装的版本,并确保Predis的安装版本至少为0.8.5。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.