cache: Introduce StringCache, switch to unordered_map, default to memory cache if fs cache dir not given

Αυτή η υποβολή περιλαμβάνεται σε:
2024-10-13 15:14:19 +02:00
γονέας bfeacb0510
υποβολή 79d69f4b65
3 αρχεία άλλαξαν με 55 προσθήκες και 3 διαγραφές

@@ -72,7 +72,7 @@ std::unique_ptr<ICache> createCache(const ConfigVariableResolver &resolver)
std::string path = resolver.getConfig("cache_fs_dir");
if(path == "")
{
return std::make_unique<NoCache>(path);
return std::make_unique<StringCache>();
}
return std::make_unique<FsCache>(path);
}