\HTMLPurifier_DefinitionCache
Abstract class representing Definition cache managers that implements useful common methods and is a factory.
Synopsis
class HTMLPurifier_DefinitionCache
{
- // members
- public $type;
- // methods
- public void __construct()
- public void generateKey()
- public void isOld()
- public Boolean checkDefType()
- public abstract void add()
- public abstract void set()
- public abstract void replace()
- public abstract void get()
- public abstract void remove()
- public abstract void flush()
- public abstract void cleanup()
Tasks
Line | Task |
---|---|
11+ | Create a separate maintenance file advanced users can use to cache their custom HTMLDefinition, which can be loaded via a configuration directive |
11+ | Implement memcached |
Members
public
- $type
Methods
public
- __construct()
- add() — Adds a definition object to the cache
- checkDefType() — Checks if a definition's type jives with the cache's type
- cleanup() — Clears all expired (older version or revision) objects from cache
- flush() — Clears all objects from cache
- generateKey() — Generates a unique identifier for a particular configuration
- get() — Retrieves a definition object from the cache
- isOld() — Tests whether or not a key is old with respect to the configuration's version and revision number.
- remove() — Removes a definition object to the cache
- replace() — Replace an object in the cache
- set() — Unconditionally saves a definition object to the cache