diff options
| author | Dan Engelbrecht <[email protected]> | 2023-09-11 09:21:50 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-09-11 15:21:50 +0200 |
| commit | 4d54de153862bfe21997afe83195b879de01e749 (patch) | |
| tree | 900104616727d41af93e4825b80f0ff2e953e71c /src/zenserver/zenserver.cpp | |
| parent | better sorting of attachments in oplog blocks (#390) (diff) | |
| download | zen-4d54de153862bfe21997afe83195b879de01e749.tar.xz zen-4d54de153862bfe21997afe83195b879de01e749.zip | |
add `cache-write-log` and `cache-access-log“ configuration options (#394)
* add `cache-write-log` and `cache-access-log“ configuration options
Diffstat (limited to 'src/zenserver/zenserver.cpp')
| -rw-r--r-- | src/zenserver/zenserver.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/zenserver/zenserver.cpp b/src/zenserver/zenserver.cpp index 0d34e8d27..b8831476d 100644 --- a/src/zenserver/zenserver.cpp +++ b/src/zenserver/zenserver.cpp @@ -870,9 +870,12 @@ ZenServer::InitializeStructuredCache(const ZenServerOptions& ServerOptions) using namespace std::literals; ZEN_INFO("instantiating structured cache service"); - m_CacheStore = std::make_unique<ZenCacheStore>( - m_GcManager, - ZenCacheStore::Configuration{.BasePath = m_DataRoot / "cache", .AllowAutomaticCreationOfNamespaces = true}); + m_CacheStore = + std::make_unique<ZenCacheStore>(m_GcManager, + ZenCacheStore::Configuration{.BasePath = m_DataRoot / "cache", + .AllowAutomaticCreationOfNamespaces = true, + .EnableWriteLog = ServerOptions.StructuredCacheWriteLogEnabled, + .EnableAccessLog = ServerOptions.StructuredCacheAccessLogEnabled}); const ZenUpstreamCacheConfig& UpstreamConfig = ServerOptions.UpstreamCacheConfig; |