ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
class.ilStaticCache.php
Go to the documentation of this file.
1<?php
2
3require_once('./Services/GlobalCache/classes/class.ilGlobalCacheService.php');
4
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}
An exception for terminatinating execution or to throw for unit testing.
Class ilGlobalCacheService.
Class ilStaticCache.
unserialize($serialized_value)
$key
Definition: croninfo.php:18