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