| @@ 605-614 (lines=10) @@ | ||
| 602 | * |
|
| 603 | * @return bool |
|
| 604 | */ |
|
| 605 | public function removeItem($key) |
|
| 606 | { |
|
| 607 | if ($this->adapter instanceof iAdapter) { |
|
| 608 | $storeKey = $this->calculateStoreKey($key); |
|
| 609 | ||
| 610 | return $this->adapter->remove($storeKey); |
|
| 611 | } else { |
|
| 612 | return false; |
|
| 613 | } |
|
| 614 | } |
|
| 615 | ||
| 616 | /** |
|
| 617 | * Remove all cached-items. |
|
| @@ 637-646 (lines=10) @@ | ||
| 634 | * |
|
| 635 | * @return boolean |
|
| 636 | */ |
|
| 637 | public function existsItem($key) |
|
| 638 | { |
|
| 639 | if ($this->adapter instanceof iAdapter) { |
|
| 640 | $storeKey = $this->calculateStoreKey($key); |
|
| 641 | ||
| 642 | return $this->adapter->exists($storeKey); |
|
| 643 | } else { |
|
| 644 | return false; |
|
| 645 | } |
|
| 646 | } |
|
| 647 | ||
| 648 | /** |
|
| 649 | * Get the current adapter class-name. |
|