pub struct CacheSystem {
pub l1: L1StructCache,
pub l2: L2QueryCache,
pub l3: L3LlmCache,
}Expand description
Combined three-layer cache.
Fields§
§l1: L1StructCache§l2: L2QueryCache§l3: L3LlmCacheImplementations§
Source§impl CacheSystem
impl CacheSystem
pub fn new() -> Self
Sourcepub fn all_stats(&self) -> (CacheStats, CacheStats, CacheStats)
pub fn all_stats(&self) -> (CacheStats, CacheStats, CacheStats)
Get combined stats for all layers.
Trait Implementations§
Source§impl Clone for CacheSystem
impl Clone for CacheSystem
Source§fn clone(&self) -> CacheSystem
fn clone(&self) -> CacheSystem
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 CacheSystem
impl Debug for CacheSystem
Auto Trait Implementations§
impl Freeze for CacheSystem
impl RefUnwindSafe for CacheSystem
impl Send for CacheSystem
impl Sync for CacheSystem
impl Unpin for CacheSystem
impl UnsafeUnpin for CacheSystem
impl UnwindSafe for CacheSystem
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