35 $config->getBatchSerial($this->type) .
',' .
36 $config->get($this->type .
'.DefinitionRev');
48 if (substr_count(
$key,
',') < 2) {
51 list(
$version, $hash, $revision) = explode(
',',
$key, 3);
58 if ($hash ==
$config->getBatchSerial($this->type) &&
59 $revision <
$config->get($this->type .
'.DefinitionRev')) {
73 if (
$def->type !== $this->type) {
74 trigger_error(
"Cannot use definition of type {$def->type} in cache for {$this->type}");
105 abstract public function get(
$config);
111 abstract public function remove(
$config);
Abstract class representing Definition cache managers that implements useful common methods and is a ...
flush($config)
Clears all objects from cache.
checkDefType($def)
Checks if a definition's type jives with the cache's type.
cleanup($config)
Clears all expired (older version or revision) objects from cache.
replace($def, $config)
Replace an object in the cache.
add($def, $config)
Adds a definition object to the cache.
isOld($key, $config)
Tests whether or not a key is old with respect to the configuration's version and revision number...
generateKey($config)
Generates a unique identifier for a particular configuration.