protected function getCache($key, $default)
    {
        if (!isset($this->cache[$key])) {
            $this->cache[$key] = is_callable($default) ? $default() : $default;
        }
        return $this->cache[$key];
    }
protected function getCache($key, $default)
    {
        if (!isset($this->cache[$key])) {
            $this->cache[$key] = is_callable($default) ? $default() : $default;
        }
        return $this->cache[$key];
    }
protected function getCache ( $ key , $ default ) { if ( ! isset ( $ this -> cache [ $ key ] ) ) { $ this -> cache [ $ key ] = is_callable ( $ default ) ? $ default ( ) : $ default ; } return $ this -> cache [ $ key ] ; }
Retrieves an item from the internal cache.

@param string $key Key to retrieve
@param callable|mixed $default Either a callback or an explicit default value
@return mixed Cached value
Retrieves an item from the internal cache .