pub struct CacheManager { /* private fields */ }Expand description
缓存管理器
Implementations§
Source§impl CacheManager
impl CacheManager
pub fn new(config: CacheConfig) -> Self
Sourcepub fn entry_count(&self) -> u64
pub fn entry_count(&self) -> u64
获取缓存条目数量
Sourcepub fn config(&self) -> &CacheConfig
pub fn config(&self) -> &CacheConfig
获取配置
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for CacheManager
impl !UnwindSafe for CacheManager
impl Freeze for CacheManager
impl Send for CacheManager
impl Sync for CacheManager
impl Unpin for CacheManager
impl UnsafeUnpin for CacheManager
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