Habari\APCCache::_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;
        }
        // Do not check cached data, since we can return (and cache in this object) data if the cache is set to 'keep'
        $keepcache = apc_fetch($this->prefix . ':keepcache');
        if (!self::_has($name, $group) || !isset($keepcache[$group][$name]) || $keepcache[$group][$name] < time()) {
            return true;
        } else {
            return false;
        }
    }