简体   繁体   English

phpRedis集群不能使用$ redis-> lsize('…')

[英]phpRedis cluster can't use $redis->lsize('…')

I am a chinese student and a new freshman for learn redis. 我是一名中国学生,也是一名学习redis的新生。 I have completed a project by using the class Redis, but now I will move my project to cluster, so I am using class RedisCluster . 我已经使用Redis类完成了一个项目,但是现在我将项目移至集群,因此我正在使用RedisCluster类

Unfortunately, I suffer a deadly problem, I find that the method of the class can't be used, such as: 不幸的是,我遇到了一个致命的问题,发现该类的方法无法使用,例如:

$redis=new RedisCluster(
NULL, Array('192.168.1.64:6379', '192.168.1.66:6379', '192.168.1.68:6379'));

echo $redis->lsize('msg_id_list:12');

but the others method are available. 但其他方法可用。

I know the core of the problem , i go to see the document of phpRedis, and I find the correct method is llen() in class RedisCluster, but the correct method is lsize() in class Redis. 我知道问题的核心,我去看了phpRedis的文档,发现正确的方法是RedisCluster类中的llen(),但是正确的方法是Redis类中的lsize()。

think you every one. 每个人都想你。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM