diff options
author | Andreas Fischer <bantu@owncloud.com> | 2014-07-29 11:14:36 +0200 |
---|---|---|
committer | Andreas Fischer <bantu@owncloud.com> | 2014-07-29 11:14:36 +0200 |
commit | 9be8ac5867e23663467068bed9532ca84788f073 (patch) | |
tree | 115a5f513908f30df6002790af5237f83baf6eeb /lib/private/memcache | |
parent | da391b8932fb22eb6dab20e47a1b5f9fd4e6afe5 (diff) | |
download | nextcloud-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.php | 5 |
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(); } |