pub struct L1StructCache { /* private fields */ }Expand description
L1: Struct cache for frequently accessed data.
Implementations§
Source§impl L1StructCache
impl L1StructCache
pub fn new() -> Self
Sourcepub fn invalidate(&self, key: &str)
pub fn invalidate(&self, key: &str)
Invalidate a specific key.
Sourcepub fn stats(&self) -> CacheStats
pub fn stats(&self) -> CacheStats
Get cache statistics.
Trait Implementations§
Source§impl Clone for L1StructCache
impl Clone for L1StructCache
Source§fn clone(&self) -> L1StructCache
fn clone(&self) -> L1StructCache
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 L1StructCache
impl Debug for L1StructCache
Source§impl Default for L1StructCache
impl Default for L1StructCache
Source§fn default() -> L1StructCache
fn default() -> L1StructCache
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for L1StructCache
impl RefUnwindSafe for L1StructCache
impl Send for L1StructCache
impl Sync for L1StructCache
impl Unpin for L1StructCache
impl UnsafeUnpin for L1StructCache
impl UnwindSafe for L1StructCache
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