| @@ 516-525 (lines=10) @@ | ||
| 513 | * |
|
| 514 | * @return bool |
|
| 515 | */ |
|
| 516 | public function removeItem($key) |
|
| 517 | { |
|
| 518 | if ($this->adapter instanceof iAdapter) { |
|
| 519 | $storeKey = $this->calculateStoreKey($key); |
|
| 520 | ||
| 521 | return $this->adapter->remove($storeKey); |
|
| 522 | } else { |
|
| 523 | return false; |
|
| 524 | } |
|
| 525 | } |
|
| 526 | ||
| 527 | /** |
|
| 528 | * check if cached-item exists |
|
| @@ 534-543 (lines=10) @@ | ||
| 531 | * |
|
| 532 | * @return boolean |
|
| 533 | */ |
|
| 534 | public function existsItem($key) |
|
| 535 | { |
|
| 536 | if ($this->adapter instanceof iAdapter) { |
|
| 537 | $storeKey = $this->calculateStoreKey($key); |
|
| 538 | ||
| 539 | return $this->adapter->exists($storeKey); |
|
| 540 | } else { |
|
| 541 | return false; |
|
| 542 | } |
|
| 543 | } |
|
| 544 | ||
| 545 | } |
|
| 546 | ||