| @@ 131-146 (lines=16) @@ | ||
| 128 | ||
| 129 | } |
|
| 130 | ||
| 131 | public function clearNamespace() { |
|
| 132 | ||
| 133 | try { |
|
| 134 | ||
| 135 | $data = $this->driver->clear($this->getNamespace()); |
|
| 136 | ||
| 137 | } catch (Exception $e) { |
|
| 138 | ||
| 139 | $this->setState(self::CACHE_ERROR, $e->getMessage()); |
|
| 140 | $data = false; |
|
| 141 | ||
| 142 | } |
|
| 143 | ||
| 144 | return $data; |
|
| 145 | ||
| 146 | } |
|
| 147 | ||
| 148 | public function deleteItem($key) { |
|
| 149 | ||
| @@ 242-257 (lines=16) @@ | ||
| 239 | ||
| 240 | } |
|
| 241 | ||
| 242 | public function deleteItems(array $keys) { |
|
| 243 | ||
| 244 | try { |
|
| 245 | ||
| 246 | $data = $this->driver->deleteMultiple($keys, $this->getNamespace()); |
|
| 247 | ||
| 248 | } catch (Exception $e) { |
|
| 249 | ||
| 250 | $this->setState(self::CACHE_ERROR, $e->getMessage()); |
|
| 251 | $data = false; |
|
| 252 | ||
| 253 | } |
|
| 254 | ||
| 255 | return $data; |
|
| 256 | ||
| 257 | } |
|
| 258 | ||
| 259 | public function saveDeferred(CacheItemInterface $item) { |
|
| 260 | ||
| @@ 277-292 (lines=16) @@ | ||
| 274 | ||
| 275 | abstract public function getStats(); |
|
| 276 | ||
| 277 | public function clearNamespace() { |
|
| 278 | ||
| 279 | try { |
|
| 280 | ||
| 281 | $data = $this->driver->clear($this->getNamespace()); |
|
| 282 | ||
| 283 | } catch (Exception $e) { |
|
| 284 | ||
| 285 | $this->setState(self::CACHE_ERROR, $e->getMessage()); |
|
| 286 | $data = false; |
|
| 287 | ||
| 288 | } |
|
| 289 | ||
| 290 | return $data; |
|
| 291 | ||
| 292 | } |
|
| 293 | ||
| 294 | public function test() { |
|
| 295 | ||