ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
◀ ilDoc Overview
class.ilStaticCache.php
Go to the documentation of this file.
1
<?
php
2
3
require_once(
'./Services/GlobalCache/classes/class.ilGlobalCacheService.php'
);
4
13
class
ilStaticCache
extends
ilGlobalCacheService
{
14
18
protected
function
getActive
() {
19
return
true
;
20
}
21
22
26
protected
function
getInstallable
() {
27
return
true
;
28
}
29
30
34
protected
static
$cache
=
array
();
35
36
42
public
function
exists
($key) {
43
return
isset(self::$cache[$this->
getComponent
()][$key]);
44
}
45
46
54
public
function
set
($key, $serialized_value, $ttl = null) {
55
return
self::$cache[$this->
getComponent
()][$key] = $serialized_value;
56
}
57
58
64
public
function
get
($key) {
65
return
self::$cache[$this->
getComponent
()][$key];
66
}
67
68
74
public
function
delete
($key) {
75
unset(self::$cache[$this->
getComponent
()][$key]);
76
}
77
78
82
public
function
flush
() {
83
self::$cache =
array
();
84
85
return
true
;
86
}
87
88
94
public
function
serialize
($value) {
95
return
($value);
96
}
97
98
104
public
function
unserialize
($serialized_value) {
105
return
($serialized_value);
106
}
107
}
108
109
?>
ilStaticCache\$cache
static $cache
Definition:
class.ilStaticCache.php:34
ilStaticCache\exists
exists($key)
Definition:
class.ilStaticCache.php:42
ilGlobalCacheService
Class ilGlobalCacheService.
Definition:
class.ilGlobalCacheService.php:11
ilStaticCache\flush
flush()
Definition:
class.ilStaticCache.php:82
ilStaticCache\getInstallable
getInstallable()
Definition:
class.ilStaticCache.php:26
ilGlobalCacheService\getComponent
getComponent()
Definition:
class.ilGlobalCacheService.php:124
ilStaticCache\unserialize
unserialize($serialized_value)
Definition:
class.ilStaticCache.php:104
array
Create styles array
The data for the language used.
Definition:
40duplicateStyle.php:19
ilStaticCache\serialize
serialize($value)
Definition:
class.ilStaticCache.php:94
ilStaticCache
Class ilStaticCache.
Definition:
class.ilStaticCache.php:13
ilStaticCache\getActive
getActive()
Definition:
class.ilStaticCache.php:18
php
Services
GlobalCache
classes
Static
class.ilStaticCache.php
Generated on Fri Jan 17 2025 19:01:13 for ILIAS by
1.8.13 (using
Doxyfile
)