2017-05-03 00:08:43 +03:00
|
|
|
<?php
|
|
|
|
|
|
|
|
$CONFIG = [
|
|
|
|
'memcache.local' => '\\OC\\Memcache\\Redis',
|
|
|
|
'memcache.distributed' => '\\OC\\Memcache\\Redis',
|
|
|
|
'memcache.locking' => '\\OC\\Memcache\\Redis',
|
|
|
|
'redis.cluster' => [
|
|
|
|
'seeds' => [ // provide some/all of the cluster servers to bootstrap discovery, port required
|
2017-07-14 10:03:14 +03:00
|
|
|
'cache-cluster:7000',
|
|
|
|
'cache-cluster:7001',
|
|
|
|
'cache-cluster:7002',
|
|
|
|
'cache-cluster:7003',
|
|
|
|
'cache-cluster:7004',
|
|
|
|
'cache-cluster:7005'
|
2017-05-03 00:08:43 +03:00
|
|
|
],
|
|
|
|
'timeout' => 0.0,
|
|
|
|
'read_timeout' => 0.0,
|
|
|
|
'failover_mode' => \RedisCluster::FAILOVER_ERROR
|
|
|
|
],
|
|
|
|
];
|