2017-05-02 21:08:43 +00: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 07:03:14 +00:00
|
|
|
'cache-cluster:7000',
|
|
|
|
'cache-cluster:7001',
|
|
|
|
'cache-cluster:7002',
|
|
|
|
'cache-cluster:7003',
|
|
|
|
'cache-cluster:7004',
|
|
|
|
'cache-cluster:7005'
|
2017-05-02 21:08:43 +00:00
|
|
|
],
|
|
|
|
'timeout' => 0.0,
|
|
|
|
'read_timeout' => 0.0,
|
|
|
|
'failover_mode' => \RedisCluster::FAILOVER_ERROR
|
|
|
|
],
|
|
|
|
];
|