pub struct CacheRuntime { /* private fields */ }Implementations§
Source§impl CacheRuntime
impl CacheRuntime
pub fn new(topology: CacheTopology) -> Self
pub fn with_backend( topology: CacheTopology, backend: CacheBackendAdapter, ) -> Self
pub fn topology(&self) -> CacheTopology
pub fn backend_kind(&self) -> CacheBackendKind
pub fn metrics(&self) -> CacheMetrics
pub fn insert( &mut self, plan: &ApplicationCachePlan, value: impl Into<String>, now: CacheInstant, )
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>
Trait Implementations§
Source§impl Clone for CacheRuntime
impl Clone for CacheRuntime
Source§fn clone(&self) -> CacheRuntime
fn clone(&self) -> CacheRuntime
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 CacheRuntime
impl !RefUnwindSafe for CacheRuntime
impl Send for CacheRuntime
impl Sync for CacheRuntime
impl Unpin for CacheRuntime
impl UnsafeUnpin for CacheRuntime
impl !UnwindSafe for CacheRuntime
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