Mountain/Cache/PathCanon/Cache.rs
1
2//! Process-global canonical-path cache backing store.
3
4use std::{path::PathBuf, time::Duration};
5
6use moka::sync::Cache;
7use once_cell::sync::Lazy;
8
9pub static CACHE:Lazy<Cache<PathBuf, PathBuf>> = Lazy::new(|| {
10 Cache::builder()
11 .max_capacity(8192)
12 .time_to_idle(Duration::from_secs(60))
13 .build()
14});