Structs§
- Cache
Stats - Cache stats for display.
- Source
Meta - Metadata stored alongside each cached source.
Enums§
Functions§
- clear_
cache - Clear the cache (preserves config.yaml).
- evict_
lru_ cache - Evict cached data from the oldest sources until total cache size is under the limit. Returns the number of bytes freed.
- get_
cache_ stats - get_
source_ data_ dir - get_
source_ dir - get_
source_ meta_ path - get_
source_ registry_ path - get_
source_ search_ index_ path - has_
any_ registry - Check if any source has a registry available.
- is_
source_ cache_ fresh - load_
search_ index - Load BM25 search index for a single source.
- load_
source_ registry - Load cached/local registry for a single source.
- read_
cached_ doc - Read a cached doc if it exists (handles both plain and gzip-compressed).
- read_
meta - save_
cached_ doc - Save a fetched doc to the source data cache.
Content larger than 10 KB is gzip-compressed (saved as
.gz). - save_
source_ registry - Save a fetched registry to the source cache.
- should_
fetch_ remote_ registry - Returns true if we should fetch the remote registry for this source. Inverse of fresh check, but also returns true when no registry exists at all.
- touch_
source_ meta - Update the last_updated timestamp for a source.
- write_
meta