3require_once(
'./Services/GlobalCache/classes/class.ilGlobalCacheService.php');
 
    4require_once(
'./Services/Environment/classes/class.ilRuntime.php');
 
   27        if (function_exists(
'apcu_exists')) {
 
   42    public function set(
$key, $serialized_value, $ttl = 0)
 
   44        return apcu_store($this->
returnKey(
$key), $serialized_value, $ttl);
 
   64    public function delete(
$key)
 
   75    public function flush($complete = 
false)
 
   78            return apcu_clear_cache();
 
   82        $apcu_iterator = 
new APCUIterator();
 
   83        $apcu_iterator->rewind();
 
   84        while ($current_key = $apcu_iterator->key()) {
 
   86            if (substr($current_key, 0, strlen($key_prefix)) === $key_prefix) {
 
   87                $this->
delete($current_key);
 
   89            $apcu_iterator->next();
 
  113        return ($serialized_value);
 
  124        $cache_info = apc_cache_info();
 
  126        unset($cache_info[
'cache_list']);
 
  127        unset($cache_info[
'slot_distribution']);
 
  129        $return[
'__cache_info'] = array(
 
  130            'apc.enabled' => ini_get(
'apc.enabled'),
 
  131            'apc.shm_size' => ini_get(
'apc.shm_size'),
 
  132            'apc.shm_segments' => ini_get(
'apc.shm_segments'),
 
  133            'apc.gc_ttl' => ini_get(
'apc.gc_ttl'),
 
  134            'apc.user_ttl' => ini_get(
'apc.ttl'),
 
  135            'info' => $cache_info,
 
  138        $cache_info = apc_cache_info();
 
  139        foreach ($cache_info[
'cache_list'] as $dat) {
 
  153        return function_exists(
'apcu_store');
 
  162        return function_exists(
'apcu_store');
 
  175        return ini_get(
'apc.shm_size');
 
An exception for terminatinating execution or to throw for unit testing.
isValid($key)
Checks whether the cache key is valid or not.This method exists only for legacy reasons and has only ...
unserialize($serialized_value)
getMinMemory()
@inheritDoc
Class ilGlobalCacheService.