server/lib/private/memcache/apcu.php
2014-01-06 12:58:43 +01:00

21 lines
439 B
PHP

<?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;
} else {
return true;
}
}
}