Skip to main content

get

Function get 

Source
pub fn get(path: &Path, current: FileState) -> Option<Arc<str>>
Expand description

Look up path; returns the cached content only when the supplied current (mtime, size) matches the stored identity. A mismatch evicts the stale entry and reports a miss. state is passed in (not re-stated) because hot callers already hold the metadata.