Skip to main content

run

Function run 

Source
pub async fn run(
    cache: CacheEngine,
    metrics: Arc<CacheMetrics>,
    params: EvictionParams,
    cache_dir: PathBuf,
    policy: Arc<dyn EvictionPolicy>,
    warming: Arc<WarmingAllowance>,
    shutdown: Receiver<()>,
)
Expand description

Run the eviction driver until shutdown fires. Intended to be tasks.spawn(run(...))-ed into the runtime JoinSet; returns when the oneshot is dropped or sent.