pub struct PersistenceSection {
pub aof: bool,
pub appendfsync: AppendFsync,
pub auto_aof_rewrite_percentage: u32,
pub auto_aof_rewrite_min_size: u64,
}Expand description
[persistence] section.
Fields§
§aof: boolAppend-only file enabled. Default true.
appendfsync: AppendFsyncAOF fsync policy. Default EverySec.
auto_aof_rewrite_percentage: u32Trigger BGREWRITEAOF when current AOF is at least this fraction
(as a percent — 100 = 2× the last-rewrite size) larger than the
last rewrite. Default 100.
auto_aof_rewrite_min_size: u64Never auto-rewrite an AOF smaller than this. Default 64mb =
64 * 1024 * 1024.
Trait Implementations§
Source§impl Clone for PersistenceSection
impl Clone for PersistenceSection
Source§fn clone(&self) -> PersistenceSection
fn clone(&self) -> PersistenceSection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PersistenceSection
impl Debug for PersistenceSection
Source§impl Default for PersistenceSection
impl Default for PersistenceSection
impl Eq for PersistenceSection
Source§impl PartialEq for PersistenceSection
impl PartialEq for PersistenceSection
Source§fn eq(&self, other: &PersistenceSection) -> bool
fn eq(&self, other: &PersistenceSection) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PersistenceSection
Auto Trait Implementations§
impl Freeze for PersistenceSection
impl RefUnwindSafe for PersistenceSection
impl Send for PersistenceSection
impl Sync for PersistenceSection
impl Unpin for PersistenceSection
impl UnsafeUnpin for PersistenceSection
impl UnwindSafe for PersistenceSection
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