Microweber\Utils\Adapters\Cache\LaravelCache::get PHP Method

get() public method

If data is not found it return false *
public get ( string $cache_id, string $cache_group = 'global', boolean $timeout = false ) : mixed
$cache_id string id of the cache
$cache_group string (default is 'global') - this is the subfolder in the cache dir.
$timeout boolean
return mixed returns array of cached data or false
    public function get($cache_id, $cache_group = 'global', $timeout = false)
    {
        $cache_group = $this->cache_group($cache_group);
        if (!isset($this->cache_hits[$cache_group])) {
            $this->cache_hits[$cache_group] = array();
        }
        if (!isset($this->cache_hits[$cache_group][$cache_id])) {
            $this->cache_hits[$cache_group][$cache_id] = 0;
        }
        ++$this->cache_hits[$cache_group][$cache_id];
        if (!$this->support_tags) {
            return;
        }
        return Cache::tags($cache_group)->get($cache_id);
    }