pub struct DistributedCacheClient { /* private fields */ }Implementations§
Source§impl DistributedCacheClient
impl DistributedCacheClient
pub fn new( kind: CacheBackendKind, runtime: Arc<dyn DistributedCacheRuntime>, ) -> Self
pub fn with_runtime( kind: CacheBackendKind, runtime: Arc<dyn DistributedCacheRuntime>, ) -> Self
pub fn kind(&self) -> CacheBackendKind
pub fn insert(&self, entry: CacheEntry)
pub fn lookup(&self, key: &CacheKey, now: CacheInstant) -> CacheLookup
pub fn invalidate(&self, tags: &InvalidationSet) -> Vec<CacheKey>
pub fn begin_fill( &self, key: &CacheKey, mode: RequestCoalescingMode, holder: impl Into<String>, ) -> FillDecision
pub fn complete_fill(&self, lease: &FillLease) -> Result<(), CacheModelError>
pub fn metrics(&self) -> CacheMetrics
Trait Implementations§
Source§impl Clone for DistributedCacheClient
impl Clone for DistributedCacheClient
Source§fn clone(&self) -> DistributedCacheClient
fn clone(&self) -> DistributedCacheClient
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 DistributedCacheClient
impl !RefUnwindSafe for DistributedCacheClient
impl Send for DistributedCacheClient
impl Sync for DistributedCacheClient
impl Unpin for DistributedCacheClient
impl UnsafeUnpin for DistributedCacheClient
impl !UnwindSafe for DistributedCacheClient
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