2013-07-24 23:50:15 +04:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Copyright (c) 2012 Bart Visscher <bartv@thisnet.nl>
|
|
|
|
* This file is licensed under the Affero General Public License version 3 or
|
|
|
|
* later.
|
|
|
|
* See the COPYING-README file.
|
|
|
|
*/
|
|
|
|
|
|
|
|
namespace OC\Memcache;
|
|
|
|
|
|
|
|
class APCu extends APC {
|
|
|
|
static public function isAvailable() {
|
|
|
|
if (!extension_loaded('apcu')) {
|
|
|
|
return false;
|
|
|
|
} elseif (!ini_get('apc.enable_cli') && \OC::$CLI) {
|
|
|
|
return false;
|
2015-02-17 00:36:08 +03:00
|
|
|
} elseif (version_compare(phpversion('apc'), '4.0.6') === -1) {
|
|
|
|
return false;
|
2013-07-24 23:50:15 +04:00
|
|
|
} else {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|