TheSeer\Autoload\Factory::getCache PHP Method

getCache() public method

public getCache ( ) : TheSeer\Autoload\Cache
return TheSeer\Autoload\Cache
    public function getCache()
    {
        if (!$this->cache instanceof Cache) {
            $fname = $this->config->getCacheFile();
            if (file_exists($fname)) {
                $data = unserialize(file_get_contents($fname));
            } else {
                $data = array();
            }
            $this->cache = new Cache($data);
        }
        return $this->cache;
    }