pub fn cached<T: Any + Send + Sync, E>( path: &Path, build: impl FnOnce() -> Result<T, E>, ) -> Result<Arc<T>, E>
The index of path: the one kept, or build’s, which is then kept.
path
build