Habari\MemcacheCache::_expired PHP Метод

_expired() защищенный Метод

Return whether a named cache value has expired
protected _expired ( string $name, string $group ) : boolean
$name string The name of the cached item
$group string The group of the cached item
Результат boolean true if the stored value has expired
    protected function _expired($name, $group)
    {
        if (!$this->enabled) {
            return null;
        }
        $hash = $this->get_name_hash($name);
        $ghash = $this->get_group_hash($group);
        // Do not check cached data, since we can return (and cache in this object) data if the cache is set to 'keep'
        if (isset($this->cache_index[$ghash][$hash]) && $this->cache_index[$ghash][$hash]['expires'] > time() && file_exists($this->cache_index[$ghash][$hash]['file'])) {
            return false;
        } else {
            return true;
        }
    }