pub struct RedisServerConfig {Show 189 fields
pub port: u16,
pub bind: String,
pub protected_mode: bool,
pub tcp_backlog: Option<u32>,
pub unixsocket: Option<PathBuf>,
pub unixsocketperm: Option<u32>,
pub timeout: Option<u32>,
pub tcp_keepalive: Option<u32>,
pub tls_port: Option<u16>,
pub tls_cert_file: Option<PathBuf>,
pub tls_key_file: Option<PathBuf>,
pub tls_key_file_pass: Option<String>,
pub tls_ca_cert_file: Option<PathBuf>,
pub tls_ca_cert_dir: Option<PathBuf>,
pub tls_auth_clients: Option<bool>,
pub tls_client_cert_file: Option<PathBuf>,
pub tls_client_key_file: Option<PathBuf>,
pub tls_client_key_file_pass: Option<String>,
pub tls_dh_params_file: Option<PathBuf>,
pub tls_ciphers: Option<String>,
pub tls_ciphersuites: Option<String>,
pub tls_protocols: Option<String>,
pub tls_prefer_server_ciphers: Option<bool>,
pub tls_session_caching: Option<bool>,
pub tls_session_cache_size: Option<u32>,
pub tls_session_cache_timeout: Option<u32>,
pub tls_replication: Option<bool>,
pub tls_cluster: Option<bool>,
pub daemonize: bool,
pub dir: PathBuf,
pub logfile: Option<String>,
pub loglevel: LogLevel,
pub databases: Option<u32>,
pub maxmemory: Option<String>,
pub maxmemory_policy: Option<String>,
pub maxmemory_samples: Option<u32>,
pub maxmemory_clients: Option<String>,
pub maxmemory_eviction_tenacity: Option<u32>,
pub maxclients: Option<u32>,
pub lfu_log_factor: Option<u32>,
pub lfu_decay_time: Option<u32>,
pub active_expire_effort: Option<u32>,
pub lazyfree_lazy_eviction: Option<bool>,
pub lazyfree_lazy_expire: Option<bool>,
pub lazyfree_lazy_server_del: Option<bool>,
pub lazyfree_lazy_user_del: Option<bool>,
pub lazyfree_lazy_user_flush: Option<bool>,
pub save: SavePolicy,
pub appendonly: bool,
pub appendfsync: Option<AppendFsync>,
pub appendfilename: Option<String>,
pub appenddirname: Option<PathBuf>,
pub aof_use_rdb_preamble: Option<bool>,
pub aof_load_truncated: Option<bool>,
pub aof_load_corrupt_tail_max_size: Option<String>,
pub aof_rewrite_incremental_fsync: Option<bool>,
pub aof_timestamp_enabled: Option<bool>,
pub auto_aof_rewrite_percentage: Option<u32>,
pub auto_aof_rewrite_min_size: Option<String>,
pub no_appendfsync_on_rewrite: Option<bool>,
pub replicaof: Option<(String, u16)>,
pub masterauth: Option<String>,
pub masteruser: Option<String>,
pub repl_backlog_size: Option<String>,
pub repl_backlog_ttl: Option<u32>,
pub repl_disable_tcp_nodelay: Option<bool>,
pub repl_diskless_load: Option<ReplDisklessLoad>,
pub repl_diskless_sync: Option<bool>,
pub repl_diskless_sync_delay: Option<u32>,
pub repl_diskless_sync_max_replicas: Option<u32>,
pub repl_ping_replica_period: Option<u32>,
pub repl_timeout: Option<u32>,
pub replica_announce_ip: Option<String>,
pub replica_announce_port: Option<u16>,
pub replica_announced: Option<bool>,
pub replica_full_sync_buffer_limit: Option<String>,
pub replica_ignore_disk_write_errors: Option<bool>,
pub replica_ignore_maxmemory: Option<bool>,
pub replica_lazy_flush: Option<bool>,
pub replica_priority: Option<u32>,
pub replica_read_only: Option<bool>,
pub replica_serve_stale_data: Option<bool>,
pub min_replicas_to_write: Option<u32>,
pub min_replicas_max_lag: Option<u32>,
pub password: Option<String>,
pub acl_file: Option<PathBuf>,
pub cluster_enabled: bool,
pub cluster_node_timeout: Option<u64>,
pub cluster_config_file: Option<PathBuf>,
pub cluster_require_full_coverage: Option<bool>,
pub cluster_allow_reads_when_down: Option<bool>,
pub cluster_allow_pubsubshard_when_down: Option<bool>,
pub cluster_allow_replica_migration: Option<bool>,
pub cluster_migration_barrier: Option<u32>,
pub cluster_replica_no_failover: Option<bool>,
pub cluster_replica_validity_factor: Option<u32>,
pub cluster_announce_ip: Option<String>,
pub cluster_announce_port: Option<u16>,
pub cluster_announce_bus_port: Option<u16>,
pub cluster_announce_tls_port: Option<u16>,
pub cluster_announce_hostname: Option<String>,
pub cluster_announce_human_nodename: Option<String>,
pub cluster_port: Option<u16>,
pub cluster_preferred_endpoint_type: Option<String>,
pub cluster_link_sendbuf_limit: Option<u64>,
pub cluster_compatibility_sample_ratio: Option<u32>,
pub cluster_slot_migration_handoff_max_lag_bytes: Option<u64>,
pub cluster_slot_migration_write_pause_timeout: Option<u64>,
pub cluster_slot_stats_enabled: Option<bool>,
pub hash_max_listpack_entries: Option<u32>,
pub hash_max_listpack_value: Option<u32>,
pub list_max_listpack_size: Option<i32>,
pub list_compress_depth: Option<u32>,
pub set_max_intset_entries: Option<u32>,
pub set_max_listpack_entries: Option<u32>,
pub set_max_listpack_value: Option<u32>,
pub zset_max_listpack_entries: Option<u32>,
pub zset_max_listpack_value: Option<u32>,
pub hll_sparse_max_bytes: Option<u32>,
pub stream_node_max_bytes: Option<u32>,
pub stream_node_max_entries: Option<u32>,
pub stream_idmp_duration: Option<u64>,
pub stream_idmp_maxsize: Option<u64>,
pub loadmodule: Vec<PathBuf>,
pub hz: Option<u32>,
pub io_threads: Option<u32>,
pub io_threads_do_reads: Option<bool>,
pub notify_keyspace_events: Option<String>,
pub slowlog_log_slower_than: Option<i64>,
pub slowlog_max_len: Option<u32>,
pub latency_monitor_threshold: Option<u64>,
pub latency_tracking: Option<bool>,
pub latency_tracking_info_percentiles: Option<String>,
pub activedefrag: Option<bool>,
pub active_defrag_ignore_bytes: Option<String>,
pub active_defrag_threshold_lower: Option<u32>,
pub active_defrag_threshold_upper: Option<u32>,
pub active_defrag_cycle_min: Option<u32>,
pub active_defrag_cycle_max: Option<u32>,
pub active_defrag_max_scan_fields: Option<u32>,
pub syslog_enabled: Option<bool>,
pub syslog_ident: Option<String>,
pub syslog_facility: Option<String>,
pub supervised: Option<String>,
pub always_show_logo: Option<bool>,
pub set_proc_title: Option<bool>,
pub proc_title_template: Option<String>,
pub acl_pubsub_default: Option<String>,
pub acllog_max_len: Option<u32>,
pub enable_debug_command: Option<String>,
pub enable_module_command: Option<String>,
pub enable_protected_configs: Option<String>,
pub rename_command: Vec<(String, String)>,
pub sanitize_dump_payload: Option<String>,
pub hide_user_data_from_log: Option<bool>,
pub bind_source_addr: Option<String>,
pub busy_reply_threshold: Option<u64>,
pub client_output_buffer_limit: Vec<String>,
pub client_query_buffer_limit: Option<String>,
pub proto_max_bulk_len: Option<String>,
pub max_new_connections_per_cycle: Option<u32>,
pub max_new_tls_connections_per_cycle: Option<u32>,
pub socket_mark_id: Option<u32>,
pub dbfilename: Option<String>,
pub rdbcompression: Option<bool>,
pub rdbchecksum: Option<bool>,
pub rdb_save_incremental_fsync: Option<bool>,
pub rdb_del_sync_files: Option<bool>,
pub stop_writes_on_bgsave_error: Option<bool>,
pub shutdown_on_sigint: Option<String>,
pub shutdown_on_sigterm: Option<String>,
pub shutdown_timeout: Option<u32>,
pub activerehashing: Option<bool>,
pub crash_log_enabled: Option<bool>,
pub crash_memcheck_enabled: Option<bool>,
pub disable_thp: Option<bool>,
pub dynamic_hz: Option<bool>,
pub ignore_warnings: Option<String>,
pub include: Vec<PathBuf>,
pub jemalloc_bg_thread: Option<bool>,
pub locale_collate: Option<String>,
pub lua_time_limit: Option<u64>,
pub oom_score_adj: Option<String>,
pub oom_score_adj_values: Option<String>,
pub propagation_error_behavior: Option<String>,
pub tracking_table_max_keys: Option<u64>,
pub extra: HashMap<String, String>,
pub redis_server_bin: String,
pub redis_cli_bin: String,
}Expand description
Full configuration snapshot for a single redis-server process.
This struct is populated by the RedisServer builder and passed to
RedisServer::start. You rarely need to construct it directly; use the
builder instead.
§Example
use redis_server_wrapper::RedisServer;
let server = RedisServer::new()
.port(6400)
.bind("127.0.0.1")
.save(false)
.start()
.await
.unwrap();
assert!(server.is_alive().await);
// Stopped automatically on Drop.Fields§
§port: u16TCP port the server listens on (default: 6379).
bind: StringIP address to bind (default: "127.0.0.1").
protected_mode: boolWhether protected mode is enabled (default: false).
tcp_backlog: Option<u32>TCP backlog queue length, if set.
unixsocket: Option<PathBuf>Unix domain socket path, if set.
unixsocketperm: Option<u32>Unix socket file permissions (e.g. 700), if set.
timeout: Option<u32>Idle client timeout in seconds (0 = disabled), if set.
tcp_keepalive: Option<u32>TCP keepalive interval in seconds, if set.
tls_port: Option<u16>TLS listening port, if set.
tls_cert_file: Option<PathBuf>Path to the TLS certificate file, if set.
tls_key_file: Option<PathBuf>Path to the TLS private key file, if set.
tls_key_file_pass: Option<String>Passphrase for the TLS private key file, if set.
tls_ca_cert_file: Option<PathBuf>Path to the TLS CA certificate file, if set.
tls_ca_cert_dir: Option<PathBuf>Path to a directory containing TLS CA certificates, if set.
tls_auth_clients: Option<bool>Whether TLS client authentication is required, if set.
tls_client_cert_file: Option<PathBuf>Path to the TLS client certificate file (for outgoing connections), if set.
tls_client_key_file: Option<PathBuf>Path to the TLS client private key file (for outgoing connections), if set.
tls_client_key_file_pass: Option<String>Passphrase for the TLS client private key file, if set.
tls_dh_params_file: Option<PathBuf>Path to the DH parameters file for DHE ciphers, if set.
tls_ciphers: Option<String>Allowed TLS 1.2 ciphers (OpenSSL cipher list format), if set.
tls_ciphersuites: Option<String>Allowed TLS 1.3 ciphersuites (colon-separated), if set.
tls_protocols: Option<String>Allowed TLS protocol versions (e.g. "TLSv1.2 TLSv1.3"), if set.
tls_prefer_server_ciphers: Option<bool>Whether the server prefers its own cipher order, if set.
tls_session_caching: Option<bool>Whether TLS session caching is enabled, if set.
tls_session_cache_size: Option<u32>Number of entries in the TLS session cache, if set.
tls_session_cache_timeout: Option<u32>Timeout in seconds for cached TLS sessions, if set.
tls_replication: Option<bool>Whether replication traffic uses TLS, if set.
tls_cluster: Option<bool>Whether cluster bus communication uses TLS, if set.
daemonize: boolWhether the server daemonizes itself (default: true).
dir: PathBufWorking directory for data files (default: a sub-directory of $TMPDIR).
logfile: Option<String>Path to the log file, if set. Defaults to redis.log inside the node directory.
loglevel: LogLevelServer log verbosity (default: LogLevel::Notice).
databases: Option<u32>Number of databases, if set (Redis default: 16).
maxmemory: Option<String>Maximum memory limit (e.g. "256mb"), if set.
maxmemory_policy: Option<String>Eviction policy when maxmemory is reached, if set.
maxmemory_samples: Option<u32>Number of keys sampled per eviction round, if set (Redis default: 5).
maxmemory_clients: Option<String>Per-client memory limit (e.g. "0" = disabled), if set.
maxmemory_eviction_tenacity: Option<u32>Eviction processing effort (1-100), if set (Redis default: 10).
maxclients: Option<u32>Maximum number of simultaneous client connections, if set.
lfu_log_factor: Option<u32>Logarithmic factor for the LFU frequency counter, if set (Redis default: 10).
lfu_decay_time: Option<u32>LFU counter decay time in minutes, if set (Redis default: 1).
active_expire_effort: Option<u32>Effort spent on active key expiration (1-100), if set (Redis default: 10).
lazyfree_lazy_eviction: Option<bool>Whether eviction uses background deletion, if set.
lazyfree_lazy_expire: Option<bool>Whether expired-key deletion uses background threads, if set.
lazyfree_lazy_server_del: Option<bool>Whether implicit DEL commands (e.g. RENAME) use background deletion, if set.
lazyfree_lazy_user_del: Option<bool>Whether explicit DEL behaves like UNLINK, if set.
lazyfree_lazy_user_flush: Option<bool>Whether FLUSHDB/FLUSHALL default to ASYNC, if set.
save: SavePolicyRDB save policy (default: SavePolicy::Disabled).
appendonly: boolWhether AOF persistence is enabled (default: false).
appendfsync: Option<AppendFsync>AOF fsync policy, if set.
appendfilename: Option<String>AOF filename, if set (Redis default: "appendonly.aof").
appenddirname: Option<PathBuf>AOF directory name, if set (Redis default: "appendonlydir").
aof_use_rdb_preamble: Option<bool>Whether the AOF file uses an RDB preamble, if set.
aof_load_truncated: Option<bool>Whether truncated AOF files are loaded, if set.
aof_load_corrupt_tail_max_size: Option<String>Maximum allowed size of a corrupt AOF tail, if set (e.g. "32mb").
aof_rewrite_incremental_fsync: Option<bool>Whether AOF rewrite performs incremental fsync, if set.
aof_timestamp_enabled: Option<bool>Whether timestamps are recorded in the AOF file, if set.
auto_aof_rewrite_percentage: Option<u32>Trigger an AOF rewrite when the file grows by this percentage, if set.
auto_aof_rewrite_min_size: Option<String>Minimum AOF size before an automatic rewrite is triggered, if set (e.g. "64mb").
no_appendfsync_on_rewrite: Option<bool>Whether fsync is suppressed during AOF rewrites, if set.
replicaof: Option<(String, u16)>Master host and port to replicate from, if set.
masterauth: Option<String>Password for authenticating with a master, if set.
masteruser: Option<String>Username for authenticating with a master, if set.
repl_backlog_size: Option<String>Replication backlog size (e.g. "1mb"), if set.
repl_backlog_ttl: Option<u32>Seconds before the backlog is freed when no replicas are connected, if set.
repl_disable_tcp_nodelay: Option<bool>Whether TCP_NODELAY is disabled on the replication socket, if set.
repl_diskless_load: Option<ReplDisklessLoad>Diskless load policy for replicas, if set.
repl_diskless_sync: Option<bool>Whether the master sends RDB to replicas via diskless transfer, if set.
repl_diskless_sync_delay: Option<u32>Delay in seconds before starting a diskless sync, if set.
repl_diskless_sync_max_replicas: Option<u32>Maximum number of replicas to wait for before starting a diskless sync, if set.
repl_ping_replica_period: Option<u32>Interval in seconds between PING commands sent to the master, if set.
repl_timeout: Option<u32>Replication timeout in seconds, if set.
replica_announce_ip: Option<String>IP address a replica announces to the master, if set.
replica_announce_port: Option<u16>Port a replica announces to the master, if set.
replica_announced: Option<bool>Whether the replica is announced to clients, if set.
replica_full_sync_buffer_limit: Option<String>Buffer limit for full synchronization on replicas (e.g. "256mb"), if set.
replica_ignore_disk_write_errors: Option<bool>Whether replicas ignore disk-write errors, if set.
replica_ignore_maxmemory: Option<bool>Whether replicas ignore the maxmemory setting, if set.
replica_lazy_flush: Option<bool>Whether replicas perform a lazy flush during full sync, if set.
replica_priority: Option<u32>Replica priority for Sentinel promotion, if set.
replica_read_only: Option<bool>Whether the replica is read-only, if set.
replica_serve_stale_data: Option<bool>Whether the replica serves stale data while syncing, if set.
min_replicas_to_write: Option<u32>Minimum number of replicas that must acknowledge writes, if set.
min_replicas_max_lag: Option<u32>Maximum replication lag (in seconds) for a replica to count toward min-replicas-to-write, if set.
password: Option<String>requirepass password for client connections, if set.
acl_file: Option<PathBuf>Path to an ACL file, if set.
cluster_enabled: boolWhether Redis Cluster mode is enabled (default: false).
cluster_node_timeout: Option<u64>Cluster node timeout in milliseconds, if set.
cluster_config_file: Option<PathBuf>Path to the cluster config file, if set. Overrides the auto-generated default.
cluster_require_full_coverage: Option<bool>Whether full hash slot coverage is required for the cluster to accept writes, if set.
cluster_allow_reads_when_down: Option<bool>Whether reads are allowed when the cluster is down, if set.
cluster_allow_pubsubshard_when_down: Option<bool>Whether pubsub shard channels are allowed when the cluster is down, if set.
cluster_allow_replica_migration: Option<bool>Whether automatic replica migration is allowed, if set.
cluster_migration_barrier: Option<u32>Minimum number of replicas a master must have before one can migrate, if set.
cluster_replica_no_failover: Option<bool>Whether this replica will never attempt a failover, if set.
cluster_replica_validity_factor: Option<u32>Factor multiplied by node timeout to determine replica validity, if set.
cluster_announce_ip: Option<String>IP address this node announces to the cluster bus, if set.
cluster_announce_port: Option<u16>Client port this node announces to the cluster, if set.
cluster_announce_bus_port: Option<u16>Cluster bus port this node announces, if set.
cluster_announce_tls_port: Option<u16>TLS port this node announces to the cluster, if set.
cluster_announce_hostname: Option<String>Hostname this node announces to the cluster, if set.
cluster_announce_human_nodename: Option<String>Human-readable node name announced to the cluster, if set.
cluster_port: Option<u16>Dedicated cluster bus port, if set (0 = auto, default offset +10000).
cluster_preferred_endpoint_type: Option<String>Preferred endpoint type for cluster redirections, if set (e.g. "ip", "hostname").
cluster_link_sendbuf_limit: Option<u64>Send buffer limit in bytes for cluster bus links, if set.
cluster_compatibility_sample_ratio: Option<u32>Compatibility sample ratio percentage, if set.
cluster_slot_migration_handoff_max_lag_bytes: Option<u64>Maximum lag in bytes before slot migration handoff, if set.
cluster_slot_migration_write_pause_timeout: Option<u64>Write pause timeout in milliseconds during slot migration, if set.
cluster_slot_stats_enabled: Option<bool>Whether per-slot statistics are enabled, if set.
hash_max_listpack_entries: Option<u32>Maximum number of entries in a hash before converting from listpack to hash table, if set.
hash_max_listpack_value: Option<u32>Maximum size of a hash entry value before converting from listpack to hash table, if set.
list_max_listpack_size: Option<i32>Maximum listpack size for list entries (positive = element count, negative = byte limit), if set.
list_compress_depth: Option<u32>Number of list quicklist nodes at each end that are not compressed, if set.
set_max_intset_entries: Option<u32>Maximum number of integer entries in a set before converting from intset to hash table, if set.
set_max_listpack_entries: Option<u32>Maximum number of entries in a set before converting from listpack to hash table, if set.
set_max_listpack_value: Option<u32>Maximum size of a set entry value before converting from listpack to hash table, if set.
zset_max_listpack_entries: Option<u32>Maximum number of entries in a sorted set before converting from listpack to skiplist, if set.
zset_max_listpack_value: Option<u32>Maximum size of a sorted set entry value before converting from listpack to skiplist, if set.
hll_sparse_max_bytes: Option<u32>Maximum number of bytes used by the sparse representation of a HyperLogLog, if set.
stream_node_max_bytes: Option<u32>Maximum number of bytes in a single stream listpack node, if set.
stream_node_max_entries: Option<u32>Maximum number of entries in a single stream listpack node, if set.
stream_idmp_duration: Option<u64>Duration in milliseconds for stream ID de-duplication, if set.
stream_idmp_maxsize: Option<u64>Maximum number of entries tracked for stream ID de-duplication, if set.
loadmodule: Vec<PathBuf>List of Redis module paths to load at startup.
hz: Option<u32>Server tick frequency in Hz, if set (Redis default: 10).
io_threads: Option<u32>Number of I/O threads, if set.
io_threads_do_reads: Option<bool>Whether I/O threads also handle reads, if set.
notify_keyspace_events: Option<String>Keyspace notification event mask (e.g. "KEA"), if set.
slowlog_log_slower_than: Option<i64>Log queries slower than this many microseconds (0 = log everything, -1 = disabled).
slowlog_max_len: Option<u32>Maximum number of entries in the slow log.
latency_monitor_threshold: Option<u64>Latency monitor threshold in milliseconds (0 = disabled).
latency_tracking: Option<bool>Enable the extended latency tracking system.
latency_tracking_info_percentiles: Option<String>Percentiles reported by the latency tracking system (e.g. "50 99 99.9").
activedefrag: Option<bool>Enable active defragmentation.
active_defrag_ignore_bytes: Option<String>Minimum amount of fragmentation waste to start defragmentation.
active_defrag_threshold_lower: Option<u32>Minimum percentage of fragmentation to start defragmentation.
active_defrag_threshold_upper: Option<u32>Maximum percentage of fragmentation at which we use maximum effort.
active_defrag_cycle_min: Option<u32>Minimal effort for defragmentation as a percentage of CPU time.
active_defrag_cycle_max: Option<u32>Maximum effort for defragmentation as a percentage of CPU time.
active_defrag_max_scan_fields: Option<u32>Maximum number of set/hash/zset/list fields processed per defrag scan step.
syslog_enabled: Option<bool>Enable logging to syslog.
syslog_ident: Option<String>Syslog identity string.
syslog_facility: Option<String>Syslog facility (e.g. "local0").
supervised: Option<String>Supervision mode ("upstart", "systemd", "auto", or "no").
always_show_logo: Option<bool>Show the Redis logo on startup.
set_proc_title: Option<bool>Set the process title.
proc_title_template: Option<String>Template for the process title.
acl_pubsub_default: Option<String>Default pub/sub permissions for ACL users ("allchannels" or "resetchannels").
acllog_max_len: Option<u32>Maximum length of the ACL log.
enable_debug_command: Option<String>Enable the DEBUG command ("yes", "local", or "no").
enable_module_command: Option<String>Enable the MODULE command ("yes", "local", or "no").
enable_protected_configs: Option<String>Allow CONFIG SET to modify protected configs.
rename_command: Vec<(String, String)>Rename a command (command, new-name). Empty new-name disables the command.
sanitize_dump_payload: Option<String>Sanitize dump payload on restore ("yes", "no", or "clients").
hide_user_data_from_log: Option<bool>Hide user data from log messages.
bind_source_addr: Option<String>Source address for outgoing connections.
busy_reply_threshold: Option<u64>Busy reply threshold in milliseconds.
client_output_buffer_limit: Vec<String>Client output buffer limits (e.g. "normal 0 0 0", "replica 256mb 64mb 60").
client_query_buffer_limit: Option<String>Maximum size of a single client query buffer.
proto_max_bulk_len: Option<String>Maximum size of a single protocol bulk request.
max_new_connections_per_cycle: Option<u32>Maximum number of new connections per event loop cycle.
max_new_tls_connections_per_cycle: Option<u32>Maximum number of new TLS connections per event loop cycle.
socket_mark_id: Option<u32>Socket mark ID for outgoing connections.
dbfilename: Option<String>RDB dump filename.
rdbcompression: Option<bool>Enable RDB compression.
rdbchecksum: Option<bool>Enable RDB checksum.
rdb_save_incremental_fsync: Option<bool>Incremental fsync during RDB save.
rdb_del_sync_files: Option<bool>Delete RDB sync files used by diskless replication.
stop_writes_on_bgsave_error: Option<bool>Stop accepting writes when bgsave fails.
shutdown_on_sigint: Option<String>Shutdown behavior on SIGINT (e.g. "default", "save", "nosave", "now", "force").
shutdown_on_sigterm: Option<String>Shutdown behavior on SIGTERM.
shutdown_timeout: Option<u32>Maximum seconds to wait during shutdown for lagging replicas.
activerehashing: Option<bool>Enable active rehashing.
crash_log_enabled: Option<bool>Enable crash log on crash.
crash_memcheck_enabled: Option<bool>Enable crash memory check on crash.
disable_thp: Option<bool>Disable transparent huge pages.
dynamic_hz: Option<bool>Enable dynamic Hz adjustment.
ignore_warnings: Option<String>Ignore specific warnings (e.g. "ARM64-COW-BUG").
include: Vec<PathBuf>Include another config file.
jemalloc_bg_thread: Option<bool>Enable jemalloc background thread.
locale_collate: Option<String>Locale collation setting.
lua_time_limit: Option<u64>Lua script time limit in milliseconds.
oom_score_adj: Option<String>OOM score adjustment mode ("yes", "no", or "absolute").
oom_score_adj_values: Option<String>OOM score adjustment values (e.g. "0 200 800").
propagation_error_behavior: Option<String>Propagation error behavior ("panic" or "ignore").
tracking_table_max_keys: Option<u64>Maximum number of keys in the tracking table.
extra: HashMap<String, String>Arbitrary key/value directives forwarded verbatim to the config file.
redis_server_bin: StringPath to the redis-server binary (default: "redis-server").
redis_cli_bin: StringPath to the redis-cli binary (default: "redis-cli").
Trait Implementations§
Source§impl Clone for RedisServerConfig
impl Clone for RedisServerConfig
Source§fn clone(&self) -> RedisServerConfig
fn clone(&self) -> RedisServerConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RedisServerConfig
impl Debug for RedisServerConfig
Auto Trait Implementations§
impl Freeze for RedisServerConfig
impl RefUnwindSafe for RedisServerConfig
impl Send for RedisServerConfig
impl Sync for RedisServerConfig
impl Unpin for RedisServerConfig
impl UnsafeUnpin for RedisServerConfig
impl UnwindSafe for RedisServerConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more