aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-04-15 10:48:31 +0200
committermetamuffin <metamuffin@disroot.org>2024-04-15 10:48:31 +0200
commit0acf32113051addd1aba4a6f823b9c918d839e04 (patch)
treef63adbf7a89a6e97e26023bb18772f5c3dd411ff /common
parentfa987c5f4a2420c6daf0c8c00514a9564991a57e (diff)
downloadjellything-0acf32113051addd1aba4a6f823b9c918d839e04.tar
jellything-0acf32113051addd1aba4a6f823b9c918d839e04.tar.bz2
jellything-0acf32113051addd1aba4a6f823b9c918d839e04.tar.zst
import: optionally use ram for storage. might be faster
Diffstat (limited to 'common')
-rw-r--r--common/src/config.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/src/config.rs b/common/src/config.rs
index e9f163b..6dd5b68 100644
--- a/common/src/config.rs
+++ b/common/src/config.rs
@@ -24,6 +24,7 @@ pub struct GlobalConfig {
#[serde(default = "default::secrets_path")] pub secrets_path: PathBuf,
#[serde(default = "default::transcoding_profiles")] pub transcoding_profiles: Vec<EncodingProfile>,
#[serde(default = "default::max_in_memory_cache_size")] pub max_in_memory_cache_size: usize,
+ #[serde(default)] pub use_in_memory_import_storage: bool,
#[serde(default)] pub admin_username: Option<String>,
#[serde(default = "default::login_expire")] pub login_expire: i64,
#[serde(default)] pub default_permission_set: PermissionSet,