pub fn get_or_read(path: &Path) -> Option<Arc<str>>Expand description
Read a file through the cache: returns cached content on a fresh hit, else
reads from disk (UTF-8), populates the cache, and returns it. None on a
non-UTF-8/unreadable/unstatable file. Convenience for callers without their
own size/special-file gating (the search-index build and ctx_search use
the explicit get/insert pair so they keep their own skip rules).