concrete/src/Cache/Cache.php
public function exists($key)
    {
        if ($this->enabled) {
            return !$this->pool->getItem($key)->isMiss();
        } else {
            return false;
        }
    }
public function exists($key)
    {
        if ($this->enabled) {
            return !$this->pool->getItem($key)->isMiss();
        } else {
            return false;
        }
    }
public function exists ( $ key ) { if ( $ this -> enabled ) { return ! $ this -> pool -> getItem ( $ key ) -> isMiss ( ) ; } else { return false ; } }
Checks if an item exists in the cache.

@param string $key Name of the cache item ID

@return bool True if exists, false if not
Checks if an item exists in the cache .