| @@ 118-133 (lines=16) @@ | ||
| 115 | ||
| 116 | } |
|
| 117 | ||
| 118 | public function clearNamespace() { |
|
| 119 | ||
| 120 | try { |
|
| 121 | ||
| 122 | $data = $this->driver->clear($this->getNamespace()); |
|
| 123 | ||
| 124 | } catch (Exception $e) { |
|
| 125 | ||
| 126 | $this->setState(self::CACHE_ERROR, $e->getMessage()); |
|
| 127 | $data = false; |
|
| 128 | ||
| 129 | } |
|
| 130 | ||
| 131 | return $data; |
|
| 132 | ||
| 133 | } |
|
| 134 | ||
| 135 | public function deleteItem($key) { |
|
| 136 | ||
| @@ 229-244 (lines=16) @@ | ||
| 226 | ||
| 227 | } |
|
| 228 | ||
| 229 | public function deleteItems(array $keys) { |
|
| 230 | ||
| 231 | try { |
|
| 232 | ||
| 233 | $data = $this->driver->deleteMultiple($keys, $this->getNamespace()); |
|
| 234 | ||
| 235 | } catch (Exception $e) { |
|
| 236 | ||
| 237 | $this->setState(self::CACHE_ERROR, $e->getMessage()); |
|
| 238 | $data = false; |
|
| 239 | ||
| 240 | } |
|
| 241 | ||
| 242 | return $data; |
|
| 243 | ||
| 244 | } |
|
| 245 | ||
| 246 | public function saveDeferred(CacheItemInterface $item) { |
|
| 247 | ||
| @@ 264-279 (lines=16) @@ | ||
| 261 | ||
| 262 | abstract public function getStats(); |
|
| 263 | ||
| 264 | public function clearNamespace() { |
|
| 265 | ||
| 266 | try { |
|
| 267 | ||
| 268 | $data = $this->driver->clear($this->getNamespace()); |
|
| 269 | ||
| 270 | } catch (Exception $e) { |
|
| 271 | ||
| 272 | $this->setState(self::CACHE_ERROR, $e->getMessage()); |
|
| 273 | $data = false; |
|
| 274 | ||
| 275 | } |
|
| 276 | ||
| 277 | return $data; |
|
| 278 | ||
| 279 | } |
|
| 280 | ||
| 281 | public function test() { |
|
| 282 | ||