54 self::$active[get_called_class()] = $this->
getActive();
76 abstract public function unserialize($serialized_value);
84 abstract public function get($key);
94 abstract public function set($key, $serialized_value, $ttl = null);
102 abstract public function serialize($value);
141 return self::$active[get_called_class()];
149 return self::$installable[get_called_class()];
176 return 'Not installed';
179 return 'Not enough Cache-Memory, set to at least ' . $this->
getMinMemory() .
'M';
182 return 'Unknown reason';
208 if (preg_match(
'/([0-9]*)([M|K])/uism', $memory_limit, $matches)) {
209 switch ($matches[2]) {
211 $memory_limit = $matches[1] * 1024 * 1024;
214 $memory_limit = $matches[1] * 1024;
218 $memory_limit = $memory_limit * 1024 * 1024;
221 return ($memory_limit >= $this->
getMinMemory() * 1024 * 1024);
230 abstract public function exists($key);
238 abstract public function delete($key);
244 abstract public function flush();
274 $this->valid_keys[$key] =
true;
290 unset($this->valid_keys[$key]);
292 unset($this->valid_keys);
308 return isset($this->valid_keys[$key]);
isValid($key)
Checks whether the cache key is valid or not.
setServiceId($service_id)
__construct($service_id, $component)
Class ilGlobalCacheService.
getInstallationFailureReason()
setValid($key)
Declare a key as valid.
Create styles array
The data for the language used.
setServiceType($service_type)
setInvalid($key=null)
Set the key as invalid.
unserialize($serialized_value)