ILIAS
Release_5_0_x_branch Revision 61816
◀ ilDoc Overview
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
Examples
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Groups
Pages
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
?>
Services
GlobalCache
classes
Static
class.ilStaticCache.php
Generated on Wed Apr 27 2016 21:01:39 for ILIAS by
1.8.1.2 (using
Doxyfile
)