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        return apcu_clear_cache();
 
   97        return ($serialized_value);
 
  108        $cache_info = apc_cache_info();
 
  110        unset($cache_info[
'cache_list']);
 
  111        unset($cache_info[
'slot_distribution']);
 
  113        $return[
'__cache_info'] = array(
 
  114            'apc.enabled'      => ini_get(
'apc.enabled'),
 
  115            'apc.shm_size'     => ini_get(
'apc.shm_size'),
 
  116            'apc.shm_segments' => ini_get(
'apc.shm_segments'),
 
  117            'apc.gc_ttl'       => ini_get(
'apc.gc_ttl'),
 
  118            'apc.user_ttl'     => ini_get(
'apc.ttl'),
 
  119            'info'             => $cache_info,
 
  122        $cache_info = apc_cache_info();
 
  123        foreach ($cache_info[
'cache_list'] as $dat) {
 
  137        return function_exists(
'apcu_store');
 
  146        return function_exists(
'apcu_store');
 
  159        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.