Bluz\Cache\Adapter\PhpFile::doContains PHP Method

doContains() protected method

protected doContains ( string $id ) : boolean
$id string
return boolean
    protected function doContains($id)
    {
        $filename = $this->getFilename($id);
        if (!is_file($filename)) {
            return false;
        }
        $cacheEntry = (include $filename);
        return $cacheEntry['ttl'] === Cache::TTL_NO_EXPIRY || $cacheEntry['ttl'] > time();
    }