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 (any text encoding, see text_decode), populates the cache,
and returns it. None on a
binary/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).