Expand description
Local cache for package indices (offline support).
Structs§
- Index
Meta - HTTP cache metadata for index files.
Functions§
- fetch_
with_ cache - Fetch URL with cache support using conditional requests. Returns (data, was_cached) tuple.
- index_
cache_ key - Generate a safe cache key from a URL.
- read_
index - Read cached index data.
- read_
index_ if_ fresh - Read cached index if not expired.
- read_
index_ meta - Read index metadata (for staleness check).
- write_
index - Write index data and metadata to cache.