public function isExpired($key)
    {
        // Check to see if the cached data has expired.
        if (filemtime($this->fetchStreamUri($key)) < (time() - $this->ttl)) {
            return true;
        }

        return false;
    }
public function isExpired($key)
    {
        // Check to see if the cached data has expired.
        if (filemtime($this->fetchStreamUri($key)) < (time() - $this->ttl)) {
            return true;
        }

        return false;
    }
public function isExpired ( $ key ) { // Check to see if the cached data has expired. if ( filemtime ( $ this -> fetchStreamUri ( $ key ) ) < ( time ( ) - $ this -> ttl ) ) { return true ; } return false ; }
Check whether or not the cached data by id has expired.

@param   string $key The storage entry identifier.

@return  boolean  True if the data has expired.

@since   2.0
Check whether or not the cached data by id has expired .