fix(config): restored deleted code

I accidently deleted some cacheing mechanisms, these have been restored
This commit is contained in:
2025-02-21 10:39:43 -05:00
parent c5513f9404
commit c735fe8b51

View File

@@ -29,4 +29,14 @@ bool Config::loadConfig(const std::string& configFile) {
return true;
}
bool Config::isKeyInCache(const std::string &key) {
return configMap.find(key) != configMap.end();
}
void Config::addToCache(const std::string &key, const YAML::Node &node) {
configMap[key] = node;
}
void Config::registerUnknownKey(const std::string &key) {
unknownKeys.push_back(key);
}