BrowscapPHP\Cache\BrowscapCache::hasItem PHP Method

hasItem() public method

Test if an item exists.
public hasItem ( string $cacheId, boolean $withVersion = true ) : boolean
$cacheId string
$withVersion boolean
return boolean
    public function hasItem($cacheId, $withVersion = true)
    {
        if ($withVersion) {
            $cacheId .= '.' . $this->getVersion();
        }
        return $this->cache->hasItem($cacheId);
    }