def _cache(self, conf):
        if conf not in self._cached:
            path = sh.joinpths(self._path, conf + self._conf_ext)
            if not sh.isfile(path):
                raise exceptions.YamlConfigNotFoundException(path)

            self._cached[conf] = utils.load_yaml(path) or {}
Cache config file into memory to avoid re-reading it from disk.
dataset/ETHPy150Open openstack/anvil/anvil/cfg.py/YamlRefLoader._cache