ILIAS
eassessment Revision 61809
|
Definition cache decorator class that cleans up the cache whenever there is a cache miss. More...
Public Member Functions | |
copy () | |
Cross-compatible clone substitute. | |
add ($def, $config) | |
Adds a definition object to the cache. | |
set ($def, $config) | |
Unconditionally saves a definition object to the cache. | |
replace ($def, $config) | |
Replace an object in the cache. | |
get ($config) | |
Retrieves a definition object from the cache. | |
Public Member Functions inherited from HTMLPurifier_DefinitionCache_Decorator | |
__construct () | |
decorate (&$cache) | |
Lazy decorator function. | |
remove ($config) | |
Removes a definition object to the cache. | |
flush ($config) | |
Clears all objects from cache. | |
cleanup ($config) | |
Clears all expired (older version or revision) objects from cache. | |
Public Member Functions inherited from HTMLPurifier_DefinitionCache | |
__construct ($type) | |
generateKey ($config) | |
Generates a unique identifier for a particular configuration. | |
isOld ($key, $config) | |
Tests whether or not a key is old with respect to the configuration's version and revision number. | |
checkDefType ($def) | |
Checks if a definition's type jives with the cache's type. |
Data Fields | |
$name = 'Cleanup' | |
Data Fields inherited from HTMLPurifier_DefinitionCache_Decorator | |
$cache | |
Cache object we are decorating. | |
Data Fields inherited from HTMLPurifier_DefinitionCache | |
$type |
Definition cache decorator class that cleans up the cache whenever there is a cache miss.
Definition at line 7 of file Cleanup.php.
HTMLPurifier_DefinitionCache_Decorator_Cleanup::add | ( | $def, | |
$config | |||
) |
Adds a definition object to the cache.
Reimplemented from HTMLPurifier_DefinitionCache_Decorator.
Definition at line 17 of file Cleanup.php.
References $config, and HTMLPurifier_DefinitionCache_Decorator\cleanup().
HTMLPurifier_DefinitionCache_Decorator_Cleanup::copy | ( | ) |
Cross-compatible clone substitute.
Reimplemented from HTMLPurifier_DefinitionCache_Decorator.
Definition at line 13 of file Cleanup.php.
HTMLPurifier_DefinitionCache_Decorator_Cleanup::get | ( | $config | ) |
Retrieves a definition object from the cache.
Reimplemented from HTMLPurifier_DefinitionCache_Decorator.
Definition at line 35 of file Cleanup.php.
References $config, $ret, and HTMLPurifier_DefinitionCache_Decorator\cleanup().
HTMLPurifier_DefinitionCache_Decorator_Cleanup::replace | ( | $def, | |
$config | |||
) |
Replace an object in the cache.
Reimplemented from HTMLPurifier_DefinitionCache_Decorator.
Definition at line 29 of file Cleanup.php.
References $config, and HTMLPurifier_DefinitionCache_Decorator\cleanup().
HTMLPurifier_DefinitionCache_Decorator_Cleanup::set | ( | $def, | |
$config | |||
) |
Unconditionally saves a definition object to the cache.
Reimplemented from HTMLPurifier_DefinitionCache_Decorator.
Definition at line 23 of file Cleanup.php.
References $config, and HTMLPurifier_DefinitionCache_Decorator\cleanup().
HTMLPurifier_DefinitionCache_Decorator_Cleanup::$name = 'Cleanup' |
Definition at line 11 of file Cleanup.php.