mirror of
https://github.com/brunopostle/ifcurl.git
synced 2026-07-12 02:08:13 +00:00
Disk cache (bare repo clones under ~/.cache/ifcurl/): - IFCURL_CACHE_MAX_GB env var sets the max total size; when exceeded after a new clone the oldest-accessed repos are removed until under the limit - remote_url stored per clone entry so ifcurl cache list can show the URL - _touch_cache() updates mtime on every repo open for LRU tracking In-memory caches (service.py): - _T2_MAX and _T3_MAX now read from IFCURL_T2_MAX / IFCURL_T3_MAX env vars (defaults: 8 IFC blobs, 64 selector results) — configurable without rebuild New CLI: ifcurl cache list | prune [--max-gb N] | clear Tests: 6 new unit tests for _dir_size, _touch_cache, _repo_cache_entries, _evict_if_needed. 118 → 124 passing. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| conftest.py | ||
| test_auth.py | ||
| test_git.py | ||
| test_render.py | ||
| test_service.py | ||
| test_url.py | ||
| test_viewer_url.mjs | ||