Trait DistributedCacheRuntime
Source pub trait DistributedCacheRuntime:
Send
+ Sync
+ 'static {
// Required methods
fn insert(&self, entry: CacheEntry);
fn lookup(&self, key: &CacheKey, now: CacheInstant) -> CacheLookup;
fn invalidate(&self, tags: &InvalidationSet) -> Vec<CacheKey>;
fn begin_fill(
&self,
key: &CacheKey,
mode: RequestCoalescingMode,
holder: String,
) -> FillDecision;
fn complete_fill(&self, lease: &FillLease) -> Result<(), CacheModelError>;
fn metrics(&self) -> CacheMetrics;
// Provided methods
fn is_shared_backend(&self) -> bool { ... }
fn supports_live_shared_state(&self) -> bool { ... }
}