Artifact 6148456f48c6a0774dc137fb37aaa2aefcafb00fd3c77243f92ea1a4280235af:
- File
repo_content_cache.go
-
2026-10-25 23:10:47
— part of check-in
[d367012009]
on branch feat/read-blob-content-cache
— feat: read an artifact by hash and cache content on Repo
Repo.ReadBlob expands one artifact by its full hash after the availability check ReadFile applies, and names an unknown hash with ErrArtifactNotFound.
Repo.SetContentCache attaches a byte-bounded content.Cache that ReadFile, ReadFileAt, ReadBlob, ListFiles, Diff and Annotate share; check-in parses are kept in its derived memo, so reads at one check-in parse the manifest once. Default off. A read that finds the DB's finished-write count moved swaps in an empty cache, so a purged, compacted or elided artifact, and a rid SQLite reuses after a purge, is never served from it. Writes by another process are not seen; the method's doc says so.
Tracked in #492. (user: [email protected], size: 3935) [annotate] [blame] [check-ins using]
-
2026-10-25 23:28:49
— part of check-in
[5e882bf1f1]
on branch main
— Merge pull request #496 from danmestas/feat/read-blob-content-cache
feat: read an artifact by hash and cache content on Repo (user: [email protected], size: 3935) [annotate] [blame] [check-ins using]
-
2026-10-25 23:10:47
— part of check-in
[d367012009]
on branch feat/read-blob-content-cache
— feat: read an artifact by hash and cache content on Repo