Struct dashmap_cache::DashmapCache
source · pub struct DashmapCache { /* private fields */ }Implementations§
source§impl<'a> DashmapCache
impl<'a> DashmapCache
pub fn new() -> Self
pub fn cached<F, A, V>( &self, invalidate_keys: &Vec<String>, closure: F, arg: A ) -> Result<V, CacheError>
pub async fn async_cached<F, A, V>( &self, invalidate_keys: &Vec<String>, closure: F, arg: A ) -> Result<V, CacheError>
pub fn invalidate(&self, tag: &str)
Trait Implementations§
source§impl Clone for DashmapCache
impl Clone for DashmapCache
source§fn clone(&self) -> DashmapCache
fn clone(&self) -> DashmapCache
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DashmapCache
impl !RefUnwindSafe for DashmapCache
impl Send for DashmapCache
impl Sync for DashmapCache
impl Unpin for DashmapCache
impl UnwindSafe for DashmapCache
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