ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
class.ilStaticCache.php
Go to the documentation of this file.
1<?php
2
3require_once('./Services/GlobalCache/classes/class.ilGlobalCacheService.php');
4
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?>
Class ilGlobalCacheService.
Class ilStaticCache.
unserialize($serialized_value)