Habari\MemcacheCache::_has PHP Method

_has() protected method

Is record with $name in the cache?
protected _has ( string $name, $group ) : boolean
$name string name of the cached item
return boolean true if item is cached, false if not
    protected function _has($name, $group)
    {
        if (!$this->enabled) {
            return false;
        }
        return isset($this->cache_index[$group][$name]) && ($this->cache_index[$group][$name]['keep'] || $this->cache_index[$group][$name]['expires'] > time()) && $this->memcache->get($this->cache_index[$group][$name]['file']) !== false;
    }