34 return $config->version .
',' .
35 $config->getBatchSerial($this->type) .
',' .
36 $config->get($this->type .
'.DefinitionRev');
46 public function isOld($key, $config)
48 if (substr_count($key,
',') < 2) {
51 list($version, $hash, $revision) = explode(
',', $key, 3);
52 $compare = version_compare($version, $config->version);
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}");
85 abstract public function add($def, $config);
92 abstract public function set($def, $config);
99 abstract public function replace($def, $config);
105 abstract public function get($config);
111 abstract public function remove($config);
117 abstract public function flush($config);
126 abstract public function cleanup($config);