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