2 require_once(
'./Services/GlobalCache/classes/class.ilGlobalCacheService.php');
21 return xcache_isset($this->
returnKey($key));
32 public function set($key, $serialized_value, $ttl = NULL) {
33 return xcache_set($this->
returnKey($key), $serialized_value, $ttl);
42 public function get($key) {
43 return xcache_get($this->
returnKey($key));
52 public function delete($key) {
53 return xcache_unset($this->
returnKey($key));
61 $_SERVER[
"PHP_AUTH_USER"] =
"xcache";
62 $_SERVER[
"PHP_AUTH_PW"] =
"xcache";
64 xcache_clear_cache(XC_TYPE_VAR, 0);
94 $function_exists = function_exists(
'xcache_set');
95 $var_size = ini_get(
'xcache.var_size') !=
'0M';
96 $var_count = ini_get(
'xcache.var_count') > 0;
97 $api = (php_sapi_name() !==
'cli');
99 $active = $function_exists AND $var_size AND $var_count AND $api;
109 return function_exists(
'xcache_set');
118 return xcache_info(XC_TYPE_VAR, 0);
127 return ini_get(
'xcache.var_size');