From: Robin Appelman Date: Tue, 16 Jul 2013 14:08:37 +0000 (+0200) Subject: memcache: also switch factory to prefix X-Git-Tag: v6.0.0alpha2~452^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=dc1a17b6f486c565ff5b30a6446421f1436355af;p=nextcloud-server.git memcache: also switch factory to prefix --- diff --git a/lib/memcache/factory.php b/lib/memcache/factory.php index 1926582aa5c..b1b49971031 100644 --- a/lib/memcache/factory.php +++ b/lib/memcache/factory.php @@ -12,16 +12,16 @@ class Factory { /** * get a cache instance, will return null if no backend is available * - * @param bool $global + * @param string $prefix * @return \OC\Memcache\Cache */ - function create($global = false) { + function create($prefix = '') { if (XCache::isAvailable()) { - return new XCache($global); + return new XCache($prefix); } elseif (APC::isAvailable()) { - return new APC($global); + return new APC($prefix); } elseif (Memcached::isAvailable()) { - return new Memcached($global); + return new Memcached($prefix); } else { return null; }