This commit is contained in:
2025-08-16 09:29:18 +02:00
parent 5502ff4bc5
commit 0000d82799
13 changed files with 719 additions and 96 deletions

View File

@@ -14,7 +14,6 @@ struct Args {
#[arg(long)]
dir: String,
/// The port of the Redis server, default is 6379 if not specified
#[arg(long)]
port: Option<u16>,
@@ -23,9 +22,13 @@ struct Args {
#[arg(long)]
debug: bool,
/// Number of logical databases (SELECT 0..N-1)
#[arg(long, default_value_t = 16)]
databases: u16,
/// Maximum number of logical databases (None = unlimited)
#[arg(long)]
max_databases: Option<u64>,
/// Master encryption key for encrypted databases
#[arg(long)]
encryption_key: Option<String>,
}
#[tokio::main]
@@ -45,7 +48,8 @@ async fn main() {
dir: args.dir,
port,
debug: args.debug,
databases: args.databases,
max_databases: args.max_databases,
encryption_key: args.encryption_key,
};
// new server