dongpi9164 2015-08-29 05:32 采纳率: 0%
浏览 371

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.

  • 写回答

1条回答 默认 最新

  • dongliang1941 2015-08-29 06:58
    关注

    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.

    评论

报告相同问题?

悬赏问题

  • ¥15 逻辑谓词和消解原理的运用
  • ¥15 请求分析基于spring boot+vue的前后端分离的项目
  • ¥15 三菱伺服电机按启动按钮有使能但不动作
  • ¥15 js,页面2返回页面1时定位进入的设备
  • ¥200 关于#c++#的问题,请各位专家解答!网站的邀请码
  • ¥50 导入文件到网吧的电脑并且在重启之后不会被恢复
  • ¥15 (希望可以解决问题)ma和mb文件无法正常打开,打开后是空白,但是有正常内存占用,但可以在打开Maya应用程序后打开场景ma和mb格式。
  • ¥20 ML307A在使用AT命令连接EMQX平台的MQTT时被拒绝
  • ¥20 腾讯企业邮箱邮件可以恢复么
  • ¥15 有人知道怎么将自己的迁移策略布到edgecloudsim上使用吗?