Struct bilibili_api_rs::cache::SimpleFishMemCacher
source · pub struct SimpleFishMemCacher {
pub map: Mutex<HashMap<String, (Instant, String)>>,
pub forgot_duration: Duration,
}Expand description
A simple in memory cacher which only remember each item in a short duration.
Fields§
§map: Mutex<HashMap<String, (Instant, String)>>§forgot_duration: DurationImplementations§
Trait Implementations§
source§impl Cacher for SimpleFishMemCacher
impl Cacher for SimpleFishMemCacher
Auto Trait Implementations§
impl RefUnwindSafe for SimpleFishMemCacher
impl Send for SimpleFishMemCacher
impl Sync for SimpleFishMemCacher
impl Unpin for SimpleFishMemCacher
impl UnwindSafe for SimpleFishMemCacher
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