Webiny\Component\Router\Router::loadFromCache PHP Method

loadFromCache() private method

Get a value from cache.
private loadFromCache ( string $path ) : boolean | string
$path string Cache identifier for which you wish to get the value.
return boolean | string
    private function loadFromCache($path)
    {
        if ($this->getCache()) {
            return $this->getCache()->read(self::CACHE_KEY . md5($path));
        }
        return false;
    }