Class ilApc.
More...
◆ delete()
◆ exists()
◆ flush()
ilApc::flush |
( |
|
$complete = false | ) |
|
- Parameters
-
- Returns
- bool
Definition at line 75 of file class.ilApc.php.
References ilGlobalCacheService\returnKey().
78 return apcu_clear_cache();
82 $apcu_iterator =
new APCUIterator();
83 $apcu_iterator->rewind();
84 while ($current_key = $apcu_iterator->key()) {
86 if (substr($current_key, 0, strlen($key_prefix)) === $key_prefix) {
87 $this->
delete($current_key);
89 $apcu_iterator->next();
◆ get()
◆ getActive()
◆ getInfo()
- Returns
- array
Definition at line 120 of file class.ilApc.php.
References $key, ilGlobalCacheService\getComponent(), and ilGlobalCacheService\getServiceId().
124 $cache_info = apc_cache_info();
126 unset($cache_info[
'cache_list']);
127 unset($cache_info[
'slot_distribution']);
129 $return[
'__cache_info'] = array(
130 'apc.enabled' => ini_get(
'apc.enabled'),
131 'apc.shm_size' => ini_get(
'apc.shm_size'),
132 'apc.shm_segments' => ini_get(
'apc.shm_segments'),
133 'apc.gc_ttl' => ini_get(
'apc.gc_ttl'),
134 'apc.user_ttl' => ini_get(
'apc.ttl'),
135 'info' => $cache_info,
138 $cache_info = apc_cache_info();
139 foreach ($cache_info[
'cache_list'] as $dat) {
◆ getInstallable()
ilApc::getInstallable |
( |
| ) |
|
|
protected |
- Returns
- bool
Definition at line 160 of file class.ilApc.php.
162 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 111 of file class.ilApc.php.
113 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: