yii2-redis icon indicating copy to clipboard operation
yii2-redis copied to clipboard

How to configure the Connection for redis cluster?@samdark@hofrob

Open zzqlleo opened this issue 5 years ago • 1 comments

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], ] ],

zzqlleo avatar Jan 14 '20 09:01 zzqlleo

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...

samdark avatar Jan 14 '20 10:01 samdark