56 self::$active[get_called_class()] = $this->
getActive();
78 abstract public function unserialize($serialized_value);
86 abstract public function get(
$key);
96 abstract public function set(
$key, $serialized_value, $ttl = null);
104 abstract public function serialize($value);
148 return self::$active[get_called_class()];
157 return self::$installable[get_called_class()];
187 return 'Not installed';
190 return 'Not enough Cache-Memory, set to at least ' . $this->
getMinMemory() .
'M';
193 return 'Unknown reason';
222 if (preg_match(
'/([0-9]*)([M|K])/uism', $memory_limit, $matches)) {
223 switch ($matches[2]) {
225 $memory_limit = $matches[1] * 1024 * 1024;
228 $memory_limit = $matches[1] * 1024;
232 $memory_limit = $memory_limit * 1024 * 1024;
235 return ($memory_limit >= $this->
getMinMemory() * 1024 * 1024);
252 abstract public function delete(
$key);
258 abstract public function flush();
291 $this->valid_keys[
$key] =
true;
308 unset($this->valid_keys[
$key]);
310 unset($this->valid_keys);
327 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)