pub struct InMemoryConfig {
pub max_keys: Option<usize>,
pub max_memory_bytes: Option<u64>,
pub enable_eviction: bool,
}Expand description
Configuration for in-memory storage
Fields§
§max_keys: Option<usize>Maximum number of keys allowed
max_memory_bytes: Option<u64>Maximum memory usage in bytes
enable_eviction: boolEnable automatic eviction when limits are reached
Trait Implementations§
Source§impl Clone for InMemoryConfig
impl Clone for InMemoryConfig
Source§fn clone(&self) -> InMemoryConfig
fn clone(&self) -> InMemoryConfig
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 InMemoryConfig
impl Debug for InMemoryConfig
Auto Trait Implementations§
impl Freeze for InMemoryConfig
impl RefUnwindSafe for InMemoryConfig
impl Send for InMemoryConfig
impl Sync for InMemoryConfig
impl Unpin for InMemoryConfig
impl UnwindSafe for InMemoryConfig
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