Code Duplication    Length = 10-10 lines in 2 locations

src/voku/cache/Cache.php 2 locations

@@ 566-575 (lines=10) @@
563
   *
564
   * @return bool
565
   */
566
  public function removeItem($key)
567
  {
568
    if ($this->adapter instanceof iAdapter) {
569
      $storeKey = $this->calculateStoreKey($key);
570
571
      return $this->adapter->remove($storeKey);
572
    } else {
573
      return false;
574
    }
575
  }
576
577
  /**
578
   * Remove all cached-items.
@@ 598-607 (lines=10) @@
595
   *
596
   * @return boolean
597
   */
598
  public function existsItem($key)
599
  {
600
    if ($this->adapter instanceof iAdapter) {
601
      $storeKey = $this->calculateStoreKey($key);
602
603
      return $this->adapter->exists($storeKey);
604
    } else {
605
      return false;
606
    }
607
  }
608
609
  /**
610
   * Get the current adapter class-name.