pub struct EngineConfig {
pub shard: ShardConfig,
pub persistence: Option<ShardPersistenceConfig>,
pub replication_tx: Option<Sender<ReplicationEvent>>,
pub expired_tx: Option<Sender<String>>,
pub shard_channel_buffer: usize,
}Expand description
Configuration for the engine, passed down to each shard.
Fields§
§shard: ShardConfigPer-shard configuration (memory limits, eviction policy).
persistence: Option<ShardPersistenceConfig>Optional persistence configuration. When set, each shard gets its own AOF and snapshot files under this directory.
replication_tx: Option<Sender<ReplicationEvent>>Optional broadcast sender for replication events.
When set, every successful mutation is published as a
ReplicationEvent so replication clients can stream it to
replicas.
expired_tx: Option<Sender<String>>Optional channel to receive expired key names. Used for keyspace notifications.
shard_channel_buffer: usizeChannel buffer size per shard. 0 means use the default (256).
Trait Implementations§
Source§impl Clone for EngineConfig
impl Clone for EngineConfig
Source§fn clone(&self) -> EngineConfig
fn clone(&self) -> EngineConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EngineConfig
impl Debug for EngineConfig
Source§impl Default for EngineConfig
impl Default for EngineConfig
Source§fn default() -> EngineConfig
fn default() -> EngineConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EngineConfig
impl !RefUnwindSafe for EngineConfig
impl Send for EngineConfig
impl Sync for EngineConfig
impl Unpin for EngineConfig
impl UnsafeUnpin for EngineConfig
impl !UnwindSafe for EngineConfig
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
Mutably borrows from an owned value. Read more