Class ilApc.
More...
◆ delete()
◆ exists()
◆ flush()
- Returns
- bool
Definition at line 69 of file class.ilApc.php.
70 return apcu_clear_cache();
◆ get()
◆ getActive()
◆ getInfo()
- Returns
- array
Definition at line 97 of file class.ilApc.php.
References array, ilGlobalCacheService\getComponent(), and ilGlobalCacheService\getServiceId().
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);
Create styles array
The data for the language used.
◆ getInstallable()
ilApc::getInstallable |
( |
| ) |
|
|
protected |
- Returns
- bool
Definition at line 135 of file class.ilApc.php.
136 return function_exists(
'apcu_store');
◆ getMemoryLimit()
ilApc::getMemoryLimit |
( |
| ) |
|
|
protected |
◆ getMinMemory()
◆ isValid()
◆ serialize()
ilApc::serialize |
( |
|
$value | ) |
|
◆ set()
ilApc::set |
( |
|
$key, |
|
|
|
$serialized_value, |
|
|
|
$ttl = 0 |
|
) |
| |
◆ unserialize()
ilApc::unserialize |
( |
|
$serialized_value | ) |
|
- Parameters
-
- Returns
- mixed
Definition at line 89 of file class.ilApc.php.
90 return ($serialized_value);
◆ CACHE_ID
const ilApc::CACHE_ID = 'user' |
◆ MIN_MEMORY
const ilApc::MIN_MEMORY = 16 |
The documentation for this class was generated from the following file: