Class ilApc.
More...
◆ delete()
◆ exists()
◆ flush()
- Returns
- bool
Definition at line 73 of file class.ilApc.php.
75 return apcu_clear_cache();
◆ get()
◆ getActive()
◆ getInfo()
- Returns
- array
Definition at line 104 of file class.ilApc.php.
References $key, array, ilGlobalCacheService\getComponent(), and ilGlobalCacheService\getServiceId().
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) {
Create styles array
The data for the language used.
◆ getInstallable()
ilApc::getInstallable |
( |
| ) |
|
|
protected |
- Returns
- bool
Definition at line 144 of file class.ilApc.php.
146 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 95 of file class.ilApc.php.
97 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: