From bb2f31e9a6f82763d1146c7b64a643192a5ab775 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Tue, 26 Dec 2023 20:55:55 -0600 Subject: add cache retention option --- src/slskd/Core/Options.cs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src') diff --git a/src/slskd/Core/Options.cs b/src/slskd/Core/Options.cs index 077ecf74..94f8618d 100644 --- a/src/slskd/Core/Options.cs +++ b/src/slskd/Core/Options.cs @@ -752,6 +752,15 @@ namespace slskd [Range(1, 128)] [RequiresRestart] public int Workers { get; init; } = Environment.ProcessorCount; + + /// + /// Gets the time to retain the cache (the interval on which to re-scan automatically), in minutes. + /// + [Argument(default, "share-cache-retention")] + [EnvironmentVariable("SHARE_CACHE_RETENTION")] + [Description("the time to retain the cache (re-scan interval), in minutes")] + [Range(60, int.MaxValue)] + public int? Retention { get; init; } = null; } } -- cgit v1.2.3