Open zzqlleo opened 4 years ago
for example: 'redis' => [ 'class' => 'yii\redis\Connection', 'servers'=>[ ['hostname' => '127.0.0.1','port'=> 6379], ['hostname' => '127.0.0.1','port'=> 6380], ['hostname' => '127.0.0.1','port'=> 6381], ] ],
https://www.yiiframework.com/extension/yiisoft/yii2-redis/doc/api/2.0/yii-redis-cache#$replicas-detail
I think it could be added to docs as well...
for example: 'redis' => [ 'class' => 'yii\redis\Connection', 'servers'=>[ ['hostname' => '127.0.0.1','port'=> 6379], ['hostname' => '127.0.0.1','port'=> 6380], ['hostname' => '127.0.0.1','port'=> 6381], ] ],