Skip to main content

Module cache

Module cache 

Source
Expand description

Content-addressable disk cache for the GitHub provider, under ~/.cache/rootle/providers/github (plans/0005: each provider owns its cache subtree; the TUI-level edit/ scratch stays at ~/.cache/rootle). Trees are immutable (sha-keyed) — never invalidated, only evicted. Ref mappings (owner/repo/branch → tree_sha + etag) are mutable and revalidated with If-None-Match on every open.

Structs§

RefCache

Functions§

cached_branch
harden
Startup hardening: sweep orphans, then evict least-recently-used blobs while total size exceeds max_bytes.
read_blob
read_ref
read_tree
write_blob
write_ref
write_tree