29 return $config->version .
',' .
30 $config->getBatchSerial($this->type) .
',' .
31 $config->get($this->type .
'.DefinitionRev');
40 public function isOld($key, $config) {
41 if (substr_count($key,
',') < 2)
return true;
42 list($version, $hash, $revision) = explode(
',', $key, 3);
43 $compare = version_compare($version, $config->version);
45 if ($compare != 0)
return true;
48 $hash == $config->getBatchSerial($this->type) &&
49 $revision < $config->get($this->type .
'.DefinitionRev')
61 if ($def->type !== $this->type) {
62 trigger_error(
"Cannot use definition of type {$def->type} in cache for {$this->type}");
71 abstract public function add($def, $config);
76 abstract public function set($def, $config);
81 abstract public function replace($def, $config);
86 abstract public function get($config);
91 abstract public function remove($config);
96 abstract public function flush($config);
104 abstract public function cleanup($config);