| Total Complexity | 7 |
| Total Lines | 42 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | class ArrayApcCache extends ArrayCache { |
||
| 9 | |||
| 10 | /** |
||
| 11 | * {@inheritDoc} |
||
| 12 | * @see \Ubiquity\cache\system\ArrayCache::storeContent() |
||
| 13 | */ |
||
| 14 | protected function storeContent($key, $content, $tag) { |
||
| 15 | parent::storeContent($key, $content, $tag); |
||
| 16 | if (apcu_exists($this->_root.$key)){ |
||
| 17 | apcu_delete($this->_root.$key); |
||
| 18 | } |
||
| 19 | } |
||
| 20 | |||
| 21 | protected function apcDelete($key){ |
||
| 22 | if (apcu_exists($this->_root.$key)){ |
||
| 23 | return apcu_delete($this->_root.$key); |
||
| 24 | } |
||
| 25 | return false; |
||
| 26 | } |
||
| 27 | |||
| 28 | /** |
||
| 29 | * {@inheritDoc} |
||
| 30 | * @see \Ubiquity\cache\system\ArrayCache::fetch() |
||
| 31 | */ |
||
| 32 | public function fetch($key) { |
||
| 39 | } |
||
| 40 | |||
| 41 | |||
| 42 | /** |
||
| 43 | * |
||
| 44 | * {@inheritdoc} |
||
| 45 | * @see \Ubiquity\cache\system\AbstractDataCache::remove() |
||
| 46 | */ |
||
| 47 | public function remove($key) { |
||
| 50 | } |
||
| 51 | |||
| 52 | |||
| 54 |