symfony 连接redis集群出错
symfony 连接redis集群出错:如下
Warning: call_user_func_array() expects parameter 1 to be a valid callback, no array or string given
我使用的第三方bundle
"snc/redis-bundle": "2.*",
"predis/predis": "^1.0"
这是我的配置
snc_redis:
clients:
default:
type: predis
alias: default
dsn: redis://192.168.74.132:6380
logging: %kernel.debug%
cache:
type: predis
alias: cache
dsn: redis://192.168.74.132:6381
options:
profile: 2.2
connection_timeout: 10
read_write_timeout: 30
cluster:
type: predis
alias: cluster
dsn:
- redis://192.168.74.132:6380
- redis://192.168.74.132:6381
- redis://192.168.74.132:6382
- redis://192.168.74.132:6383
- redis://192.168.74.132:6384
- redis://192.168.74.132:6385
单个redis连接没有问题,cluster连接出错,不知道是那儿出了错误,我渴望得到帮助。