From dc1a17b6f486c565ff5b30a6446421f1436355af Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Tue, 16 Jul 2013 16:08:37 +0200 Subject: [PATCH] memcache: also switch factory to prefix --- lib/memcache/factory.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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; }