Skip to main content

Module cache

Module cache 

Source
Expand description

Local cache for package indices (offline support).

Structs§

IndexMeta
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.