3 require_once(
'./Services/GlobalCache/classes/class.ilGlobalCacheService.php');
4 require_once(
'./Services/Environment/classes/class.ilRuntime.php');
26 if (function_exists(
'apc_exists')) {
27 return apc_exists($this->
returnKey($key));
29 return apc_fetch($this->
returnKey($key)) !== NULL;
41 public function set($key, $serialized_value, $ttl = 0) {
42 return apc_store($this->
returnKey($key), $serialized_value, $ttl);
51 public function get($key) {
61 public function delete($key) {
62 return apc_delete($this->
returnKey($key));
70 return apc_clear_cache(self::CACHE_ID);
90 return ($serialized_value);
100 $cache_info = apc_cache_info();
102 unset($cache_info[
'cache_list']);
103 unset($cache_info[
'slot_distribution']);
105 $return[
'__cache_info'] = array(
106 'apc.enabled' => ini_get(
'apc.enabled'),
107 'apc.shm_size' => ini_get(
'apc.shm_size'),
108 'apc.shm_segments' => ini_get(
'apc.shm_segments'),
109 'apc.gc_ttl' => ini_get(
'apc.gc_ttl'),
110 'apc.user_ttl' => ini_get(
'apc.ttl'),
111 'info' => $cache_info
114 $cache_info = apc_cache_info();
115 foreach ($cache_info[
'cache_list'] as $dat) {
119 $return[$key] = apc_fetch($key);
128 return function_exists(
'apc_store');
136 return function_exists(
'apc_store');
148 return ini_get(
'apc.shm_size');