我安装了胡桃夹子0.4.0,并在配置中设置了以下内容:
redis:
listen: 127.0.0.1:22121
hash: fnv1a_64
distribution: ketama
auto_eject_hosts: true
redis: true
server_retry_timeout: 2000
server_failure_limit: 10
servers:
- 127.0.0.1:6379:1
代码:
^{pr2}$
我怎样才能让Twemproxy和redis py合作?在
Tags:
我想出了解决问题的办法。Python redis客户端正在发送SELECT命令,而配置的URL类似于:127.0.0.1:6379?分贝=1。db=1触发了胡桃夹子不支持的SELECT命令。我把它改为db=0,现在一切正常。在
相关问题 更多 >
编程相关推荐