...
This commit is contained in:
14
src/main.rs
14
src/main.rs
@@ -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
|
||||
|
Reference in New Issue
Block a user