pub struct Cache { /* private fields */ }
Expand description
Cache struct
Implementations§
Source§impl Cache
impl Cache
Sourcepub async fn get<T>(&mut self, keys: T) -> (Option<Data>, Vec<i64>)where
T: StrOrArrI64,
pub async fn get<T>(&mut self, keys: T) -> (Option<Data>, Vec<i64>)where
T: StrOrArrI64,
Get cache
Sourcepub async fn remove<T>(&mut self, keys: T)where
T: StrOrArrI64,
pub async fn remove<T>(&mut self, keys: T)where
T: StrOrArrI64,
Removes a key from the Cache.
If key
ends with a :
character, all data beginning with that key
is deleted.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Cache
impl !RefUnwindSafe for Cache
impl Send for Cache
impl Sync for Cache
impl Unpin for Cache
impl !UnwindSafe for Cache
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