pub struct CacheManager { /* private fields */ }Implementations§
Source§impl CacheManager
impl CacheManager
pub fn new() -> Self
pub async fn set(&self, key: String, value: String, ttl: Option<Duration>)
pub async fn get(&self, key: String) -> Option<String>
pub async fn exists(&self, key: String) -> bool
pub async fn delete(&self, key: String)
pub async fn clear(&self)
pub fn start_clean_up(&self)
Auto Trait Implementations§
impl Freeze for CacheManager
impl RefUnwindSafe for CacheManager
impl Send for CacheManager
impl Sync for CacheManager
impl Unpin for CacheManager
impl UnwindSafe 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