public function exists($request)
    {
        // Hash a request data source into a string that returns cache metadata
        $this->key = $request['source'];

        if ($this->entries = $this->cache->fetch($this->key)) {
            return true;
        }
        return false;
    }
public function exists($request)
    {
        // Hash a request data source into a string that returns cache metadata
        $this->key = $request['source'];

        if ($this->entries = $this->cache->fetch($this->key)) {
            return true;
        }
        return false;
    }
public function exists ( $ request ) { // Hash a request data source into a string that returns cache metadata $ this -> key = $ request [ 'source' ] ; if ( $ this -> entries = $ this -> cache -> fetch ( $ this -> key ) ) { return true ; } return false ; }
Checks if cache exists for a request.

@param array $request Request data to check for

@return bool TRUE if a response exists in cache, FALSE otherwise
Checks if cache exists for a request .