Habari\APCCache::_get_group PHP Метод

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

Returns the named values from a group of cache.
protected _get_group ( $group ) : array
Результат array The cache records of the group
    protected function _get_group($group)
    {
        if (!$this->enabled) {
            return null;
        }
        $cache_info = apc_cache_info('user');
        $group_cache = array();
        foreach ($cache_info['cache_list'] as $cache_item) {
            if (strpos($cache_item['info'], $this->prefix . ":{$group}:") === 0) {
                $name = substr($cache_item['info'], strlen($this->prefix . ":{$group}:"));
                $group_cache[$name] = apc_fetch($cache_item['info']);
            }
        }
        return $group_cache;
    }