aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Core
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2025-11-11 19:33:13 -0600
committerGitHub <noreply@github.com>2025-11-11 19:33:13 -0600
commit27aaa276ae2365f336ac2c963856727bb19750bb (patch)
tree3974ae6ae9f19303c845837e135824ab77aa6f53 /src/slskd/Core
parent87c5d116ebfdcbc1798b3b05969c0ce8a1f62376 (diff)
parent4ef3ae10584deca3c08ab34be7645d66935b91e1 (diff)
downloadslskd-27aaa276ae2365f336ac2c963856727bb19750bb.tar.gz
Merge pull request #1524 from slskd/sqlite
Add flags to disable SQLite cache sharing and pooling
Diffstat (limited to 'src/slskd/Core')
-rw-r--r--src/slskd/Core/Options.cs16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/slskd/Core/Options.cs b/src/slskd/Core/Options.cs
index 38416ca2..a569841f 100644
--- a/src/slskd/Core/Options.cs
+++ b/src/slskd/Core/Options.cs
@@ -461,6 +461,22 @@ namespace slskd
[EnvironmentVariable("OPTIMISTIC_RELAY_FILE_INFO")]
[Description("use uploaded relay shares as source of truth for file existence and size")]
public bool OptimisticRelayFileInfo { get; init; } = false;
+
+ /// <summary>
+ /// Gets a value indicating whether SQLite cache sharing should be disabled (set to Private).
+ /// </summary>
+ [Argument(default, "no-sqlite-cache-sharing")]
+ [EnvironmentVariable("NO_SQLITE_CACHE_SHARING")]
+ [Description("disable SQLite cache sharing")]
+ public bool NoSqliteCacheSharing { get; init; } = false;
+
+ /// <summary>
+ /// Gets a value indicating whether SQLite pooling should be disabled.
+ /// </summary>
+ [Argument(default, "no-sqlite-pooling")]
+ [EnvironmentVariable("NO_SQLITE_POOLING")]
+ [Description("disable SQLite pooling")]
+ public bool NoSqlitePooling { get; init; } = false;
}
/// <summary>