pub struct MemoryCacheConfig {
pub max_entries: usize,
pub ttl: Option<Duration>,
}Expand description
Configures the default in-memory cache backend.
Fields§
§max_entries: usize§ttl: Option<Duration>Trait Implementations§
Source§impl Clone for MemoryCacheConfig
impl Clone for MemoryCacheConfig
Source§fn clone(&self) -> MemoryCacheConfig
fn clone(&self) -> MemoryCacheConfig
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 MemoryCacheConfig
impl Debug for MemoryCacheConfig
Auto Trait Implementations§
impl Freeze for MemoryCacheConfig
impl RefUnwindSafe for MemoryCacheConfig
impl Send for MemoryCacheConfig
impl Sync for MemoryCacheConfig
impl Unpin for MemoryCacheConfig
impl UnsafeUnpin for MemoryCacheConfig
impl UnwindSafe for MemoryCacheConfig
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