diff options
author | Andreas Fischer <bantu@owncloud.com> | 2013-12-09 01:34:31 +0100 |
---|---|---|
committer | Andreas Fischer <bantu@owncloud.com> | 2014-01-10 00:57:34 +0100 |
commit | 320353c237fbee2d9a8f12dd474feb3a0f6ddec6 (patch) | |
tree | ce1847cbf01f8785da8bc636b13b6ddd0e8552a0 /lib | |
parent | b6474506ebde78ef563d0d0c431d8ad02e7f125c (diff) | |
download | nextcloud-server-320353c237fbee2d9a8f12dd474feb3a0f6ddec6.tar.gz nextcloud-server-320353c237fbee2d9a8f12dd474feb3a0f6ddec6.zip |
Add support for multiple memcached servers.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/memcache/memcached.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/memcache/memcached.php b/lib/private/memcache/memcached.php index 978e6c2eff1..13b1867231a 100644 --- a/lib/private/memcache/memcached.php +++ b/lib/private/memcache/memcached.php @@ -18,8 +18,8 @@ class Memcached extends Cache { parent::__construct($prefix); if (is_null(self::$cache)) { self::$cache = new \Memcached(); - list($host, $port) = \OC_Config::getValue('memcached_server', array('localhost', 11211)); - self::$cache->addServer($host, $port); + $servers = \OC_Config::getValue('memcached_servers', array(array('localhost', 11211))); + self::$cache->addServers($servers); } } |