]> source.dussan.org Git - nextcloud-server.git/commitdiff
memcache: also switch factory to prefix
authorRobin Appelman <icewind@owncloud.com>
Tue, 16 Jul 2013 14:08:37 +0000 (16:08 +0200)
committerRobin Appelman <icewind@owncloud.com>
Tue, 16 Jul 2013 14:08:37 +0000 (16:08 +0200)
lib/memcache/factory.php

index 1926582aa5c548a79378a7500905570d2e37372c..b1b49971031f2063e0f9f3d431c2925bb841782f 100644 (file)
@@ -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;
                }