30 $config->getBatchSerial($this->type) .
',' .
31 $config->get($this->type .
'.DefinitionRev');
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}");
76 abstract public function set($def,
$config);
86 abstract public function get(
$config);
91 abstract public function remove(
$config);