Commit e2800b21 authored by alexpott's avatar alexpott
Browse files

Issue #2231595 followup by yched | catch: Add a cache backend that checks an...

Issue #2231595 followup by yched | catch: Add a cache backend that checks an inconsistent cache, then falls back to a consistent cache backend.
parent 97ee3b9c
......@@ -98,15 +98,6 @@ public function get($cid, $allow_invalid = FALSE) {
return reset($cache);
}
/**
* {@inheritdoc}
*/
public function setMultiple(array $items) {
$this->markAsOutdated();
$this->consistentBackend->setMultiple($items);
$this->fastBackend->setMultiple($items);
}
/**
* {@inheritdoc}
*/
......@@ -150,6 +141,15 @@ public function set($cid, $data, $expire = Cache::PERMANENT, array $tags = array
$this->fastBackend->set($cid, $data, $expire, $tags);
}
/**
* {@inheritdoc}
*/
public function setMultiple(array $items) {
$this->markAsOutdated();
$this->consistentBackend->setMultiple($items);
$this->fastBackend->setMultiple($items);
}
/**
* {@inheritdoc}
*/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment