summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2013-07-16 16:08:37 +0200
committerRobin Appelman <icewind@owncloud.com>2013-07-16 16:08:37 +0200
commitdc1a17b6f486c565ff5b30a6446421f1436355af (patch)
treea5abb29a47dc4e4f6617fc12dec22d57b0f4da8c
parent504089940de88220a425db21e8e133582fe15c30 (diff)
downloadnextcloud-server-dc1a17b6f486c565ff5b30a6446421f1436355af.tar.gz
nextcloud-server-dc1a17b6f486c565ff5b30a6446421f1436355af.zip
memcache: also switch factory to prefix
-rw-r--r--lib/memcache/factory.php10
1 files 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;
}