ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
◀ 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
85
89
public
function
flush
()
90
{
91
self::$cache =
array
();
92
93
return
true
;
94
}
95
96
102
public
function
serialize
($value)
103
{
104
return
($value);
105
}
106
107
113
public
function
unserialize
($serialized_value)
114
{
115
return
($serialized_value);
116
}
117
}
ilStaticCache\$cache
static $cache
Definition:
class.ilStaticCache.php:37
ilStaticCache\exists
exists($key)
Definition:
class.ilStaticCache.php:45
ilGlobalCacheService
Class ilGlobalCacheService.
Definition:
class.ilGlobalCacheService.php:11
ilStaticCache\flush
flush()
Definition:
class.ilStaticCache.php:89
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:113
array
Create styles array
The data for the language used.
Definition:
40duplicateStyle.php:19
ilStaticCache\serialize
serialize($value)
Definition:
class.ilStaticCache.php:102
ilStaticCache
Class ilStaticCache.
Definition:
class.ilStaticCache.php:13
ilStaticCache\getActive
getActive()
Definition:
class.ilStaticCache.php:19
$key
$key
Definition:
croninfo.php:18
Services
GlobalCache
classes
Static
class.ilStaticCache.php
Generated on Tue Sep 2 2025 19:02:41 for ILIAS by
1.8.13 (using
Doxyfile
)