Skip to main content

Mountain/Cache/PathCanon/
Cache.rs

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