Skip to main content

load_cached_content

Function load_cached_content 

Source
pub fn load_cached_content(path: &Path) -> Result<Arc<String>>
Expand description

Read the config at path as raw content, memoized on its (mtime, len) stamp.

§Errors

As std::fs::metadata / std::fs::read_to_string on the underlying file.

§Panics

Only if the cache mutex is poisoned.