summaryrefslogtreecommitdiffstats
path: root/lib/private/memcache
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2015-06-02 15:03:27 +0200
committerJoas Schilling <nickvergessen@owncloud.com>2015-06-02 15:42:48 +0200
commitbdc82dcfb900050f66d7e632c2808363b57e8a96 (patch)
treeadac931027d894f3541f0e40e25c54b9bb6d869f /lib/private/memcache
parent3ebc8f0564395fbb519fc4275e0f6f883df708b7 (diff)
downloadnextcloud-server-bdc82dcfb900050f66d7e632c2808363b57e8a96.tar.gz
nextcloud-server-bdc82dcfb900050f66d7e632c2808363b57e8a96.zip
Check for redis to be 2.2.5+
Diffstat (limited to 'lib/private/memcache')
-rw-r--r--lib/private/memcache/redis.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/memcache/redis.php b/lib/private/memcache/redis.php
index 78d061404ef..cfc35dcc377 100644
--- a/lib/private/memcache/redis.php
+++ b/lib/private/memcache/redis.php
@@ -151,7 +151,8 @@ class Redis extends Cache implements IMemcache {
}
static public function isAvailable() {
- return extension_loaded('redis');
+ return extension_loaded('redis')
+ && version_compare(phpversion('redis'), '2.2.5', '>=');
}
}