| @@ 553-562 (lines=10) @@ | ||
| 550 | * |
|
| 551 | * @return bool |
|
| 552 | */ |
|
| 553 | public function removeItem($key) |
|
| 554 | { |
|
| 555 | if ($this->adapter instanceof iAdapter) { |
|
| 556 | $storeKey = $this->calculateStoreKey($key); |
|
| 557 | ||
| 558 | return $this->adapter->remove($storeKey); |
|
| 559 | } else { |
|
| 560 | return false; |
|
| 561 | } |
|
| 562 | } |
|
| 563 | ||
| 564 | /** |
|
| 565 | * Remove all cached-items. |
|
| @@ 585-594 (lines=10) @@ | ||
| 582 | * |
|
| 583 | * @return boolean |
|
| 584 | */ |
|
| 585 | public function existsItem($key) |
|
| 586 | { |
|
| 587 | if ($this->adapter instanceof iAdapter) { |
|
| 588 | $storeKey = $this->calculateStoreKey($key); |
|
| 589 | ||
| 590 | return $this->adapter->exists($storeKey); |
|
| 591 | } else { |
|
| 592 | return false; |
|
| 593 | } |
|
| 594 | } |
|
| 595 | ||
| 596 | /** |
|
| 597 | * Get the current adapter class-name. |
|