pub struct FormulaCacheManager { /* private fields */ }Expand description
公式缓存管理器
Implementations§
Source§impl FormulaCacheManager
impl FormulaCacheManager
Sourcepub fn get(&mut self, key: &str) -> Option<&FormulaValue>
pub fn get(&mut self, key: &str) -> Option<&FormulaValue>
获取缓存值
Sourcepub fn set(&mut self, key: String, value: FormulaValue)
pub fn set(&mut self, key: String, value: FormulaValue)
设置缓存值
Sourcepub fn get_stats(&self) -> CacheStats
pub fn get_stats(&self) -> CacheStats
获取缓存命中率统计
Auto Trait Implementations§
impl Freeze for FormulaCacheManager
impl RefUnwindSafe for FormulaCacheManager
impl Send for FormulaCacheManager
impl Sync for FormulaCacheManager
impl Unpin for FormulaCacheManager
impl UnsafeUnpin for FormulaCacheManager
impl UnwindSafe for FormulaCacheManager
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