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

I am a chinese student and a new freshman for learn 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.

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.

php

1个回答



我知道问题的核心,我去看看phpRedis的文档,我发现正确的方法是llen()in 类RedisCluster,但正确的方法是Redis类中的lsize()。</ p>

认为你是每一个。</ p>
</ div>

展开原文

原文

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.

think you every one.

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐