summaryrefslogtreecommitdiffstats
path: root/lib/private/memcache
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@owncloud.com>2014-07-29 11:14:36 +0200
committerAndreas Fischer <bantu@owncloud.com>2014-07-29 11:14:36 +0200
commit9be8ac5867e23663467068bed9532ca84788f073 (patch)
tree115a5f513908f30df6002790af5237f83baf6eeb /lib/private/memcache
parentda391b8932fb22eb6dab20e47a1b5f9fd4e6afe5 (diff)
downloadnextcloud-server-9be8ac5867e23663467068bed9532ca84788f073.tar.gz
nextcloud-server-9be8ac5867e23663467068bed9532ca84788f073.zip
Memcache\Factory: Remove static, use globalPrefix.
Diffstat (limited to 'lib/private/memcache')
-rw-r--r--lib/private/memcache/factory.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/private/memcache/factory.php b/lib/private/memcache/factory.php
index d60b157efe2..8e47a8899fc 100644
--- a/lib/private/memcache/factory.php
+++ b/lib/private/memcache/factory.php
@@ -59,7 +59,8 @@ class Factory implements ICacheFactory {
* @param string $prefix
* @return null|Cache
*/
- public static function createLowLatency($prefix = '') {
+ public function createLowLatency($prefix = '') {
+ $prefix = $this->globalPrefix . '/' . $prefix;
if (XCache::isAvailable()) {
return new XCache($prefix);
} elseif (APCu::isAvailable()) {
@@ -76,7 +77,7 @@ class Factory implements ICacheFactory {
*
* @return bool
*/
- public static function isAvailableLowLatency() {
+ public function isAvailableLowLatency() {
return XCache::isAvailable() || APCu::isAvailable() || APC::isAvailable();
}