ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ 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
{
15
19
protected
function
getActive
()
20
{
21
return
true
;
22
}
23
24
28
protected
function
getInstallable
()
29
{
30
return
true
;
31
}
32
33
37
protected
static
$cache
= array();
38
39
45
public
function
exists
(
$key
)
46
{
47
return
isset(self::$cache[$this->
getComponent
()][
$key
]);
48
}
49
50
58
public
function
set
(
$key
, $serialized_value, $ttl = null)
59
{
60
return
self::$cache[$this->
getComponent
()][
$key
] = $serialized_value;
61
}
62
63
69
public
function
get
(
$key
)
70
{
71
return
self::$cache[$this->
getComponent
()][
$key
];
72
}
73
74
80
public
function
delete
(
$key
)
81
{
82
unset(self::$cache[$this->
getComponent
()][
$key
]);
83
}
84
89
public
function
flush
($complete =
false
)
90
{
91
if
($complete) {
92
self::$cache = array();
93
}
else
{
94
unset(self::$cache[$this->
getComponent
()]);
95
}
96
97
return
true
;
98
}
99
100
106
public
function
serialize
($value)
107
{
108
return
($value);
109
}
110
111
117
public
function
unserialize
($serialized_value)
118
{
119
return
($serialized_value);
120
}
121
}
ilStaticCache\$cache
static $cache
Definition:
class.ilStaticCache.php:37
ilStaticCache\flush
flush($complete=false)
Definition:
class.ilStaticCache.php:89
ilStaticCache\exists
exists($key)
Definition:
class.ilStaticCache.php:45
ilGlobalCacheService
Class ilGlobalCacheService.
Definition:
class.ilGlobalCacheService.php:11
ilStaticCache\getInstallable
getInstallable()
Definition:
class.ilStaticCache.php:28
ilGlobalCacheService\getComponent
getComponent()
Definition:
class.ilGlobalCacheService.php:128
ilStaticCache\unserialize
unserialize($serialized_value)
Definition:
class.ilStaticCache.php:117
ilStaticCache\serialize
serialize($value)
Definition:
class.ilStaticCache.php:106
ilStaticCache
Class ilStaticCache.
Definition:
class.ilStaticCache.php:13
ilStaticCache\getActive
getActive()
Definition:
class.ilStaticCache.php:19
php
$key
$key
Definition:
croninfo.php:18
Services
GlobalCache
classes
Static
class.ilStaticCache.php
Generated on Thu Jan 16 2025 19:02:22 for ILIAS by
1.8.13 (using
Doxyfile
)