aboutsummaryrefslogtreecommitdiff
path: root/zenserver/zenserver.cpp
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2022-05-20 13:13:09 +0200
committerDan Engelbrecht <[email protected]>2022-05-20 13:13:09 +0200
commit37edbbd4437bd756236d99684ac4d7b0b6725aa8 (patch)
tree515770c1ce2f2cf480f35af34d60f028aafca9b4 /zenserver/zenserver.cpp
parentfix mac compilation error (diff)
downloadzen-37edbbd4437bd756236d99684ac4d7b0b6725aa8.tar.xz
zen-37edbbd4437bd756236d99684ac4d7b0b6725aa8.zip
Automatically create namespaces on requests (if enabled via configuration)
Diffstat (limited to 'zenserver/zenserver.cpp')
-rw-r--r--zenserver/zenserver.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/zenserver/zenserver.cpp b/zenserver/zenserver.cpp
index 9e6c67d34..b965a9bf3 100644
--- a/zenserver/zenserver.cpp
+++ b/zenserver/zenserver.cpp
@@ -755,7 +755,9 @@ ZenServer::InitializeStructuredCache(const ZenServerOptions& ServerOptions)
using namespace std::literals;
ZEN_INFO("instantiating structured cache service");
- m_CacheStore = std::make_unique<ZenCacheStore>(m_CasGc, m_DataRoot / "cache");
+ m_CacheStore = std::make_unique<ZenCacheStore>(
+ m_CasGc,
+ ZenCacheStore::Configuration{.BasePath = m_DataRoot / "cache", .AllowAutomaticCreationOfNamespaces = true});
const ZenUpstreamCacheConfig& UpstreamConfig = ServerOptions.UpstreamCacheConfig;