aboutsummaryrefslogtreecommitdiff
path: root/zenserver/config.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'zenserver/config.cpp')
-rw-r--r--zenserver/config.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/zenserver/config.cpp b/zenserver/config.cpp
index 1cbb84452..8d9339e92 100644
--- a/zenserver/config.cpp
+++ b/zenserver/config.cpp
@@ -279,10 +279,24 @@ ParseCliOptions(int argc, char* argv[], ZenServerOptions& ServerOptions)
options.add_option("gc",
"",
+ "gc-small-objects",
+ "Whether garbage collection is enabled or not.",
+ cxxopts::value<bool>(ServerOptions.GcConfig.CollectSmallObjects)->default_value("false"),
+ "");
+
+ options.add_option("gc",
+ "",
"gc-interval-seconds",
"Garbage collection interval. Default is 1h.",
cxxopts::value<int32_t>(ServerOptions.GcConfig.IntervalSeconds)->default_value("3600"),
"");
+
+ options.add_option("gc",
+ "",
+ "gc-cache-duration-seconds",
+ "Max duration in seconds before Z$ entries get evicted.",
+ cxxopts::value<int32_t>(ServerOptions.GcConfig.Cache.MaxDurationSeconds)->default_value("86400"),
+ "");
try
{
auto result = options.parse(argc, argv);