summaryrefslogtreecommitdiffstats
path: root/lib/memcache/factory.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/memcache/factory.php')
-rw-r--r--lib/memcache/factory.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/memcache/factory.php b/lib/memcache/factory.php
index b1b49971031..4c1b1ab207f 100644
--- a/lib/memcache/factory.php
+++ b/lib/memcache/factory.php
@@ -18,6 +18,8 @@ class Factory {
function create($prefix = '') {
if (XCache::isAvailable()) {
return new XCache($prefix);
+ } elseif (APCu::isAvailable()) {
+ return new APCu($prefix);
} elseif (APC::isAvailable()) {
return new APC($prefix);
} elseif (Memcached::isAvailable()) {
@@ -33,6 +35,6 @@ class Factory {
* @return bool
*/
public function isAvailable() {
- return XCache::isAvailable() || APC::isAvailable() || Memcached::isAvailable();
+ return XCache::isAvailable() || APCu::isAvailable() || APC::isAvailable() || Memcached::isAvailable();
}
}