pub struct CacheManagerQuick {
pub cache: Arc<Cache<String, (Bytes, String)>>,
}Expand description
Implements [CacheManager] with quick-cache as the backend.
Fields§
§cache: Arc<Cache<String, (Bytes, String)>>The instance of quick_cache::sync::Cache
Implementations§
Trait Implementations§
Source§impl CacheManagerSync for CacheManagerQuick
impl CacheManagerSync for CacheManagerQuick
Source§fn get(&self, cache_key: &str) -> Result<Option<CacheEntry>, ApiError>
fn get(&self, cache_key: &str) -> Result<Option<CacheEntry>, ApiError>
Attempts to pull a cached response and related last_modified from cache.
Source§impl Clone for CacheManagerQuick
impl Clone for CacheManagerQuick
Source§fn clone(&self) -> CacheManagerQuick
fn clone(&self) -> CacheManagerQuick
Returns a duplicate 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 CacheManagerQuick
impl RefUnwindSafe for CacheManagerQuick
impl Send for CacheManagerQuick
impl Sync for CacheManagerQuick
impl Unpin for CacheManagerQuick
impl UnwindSafe for CacheManagerQuick
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