Artifact e5a00ef638e57807937eb9cc4b24d4c6fbe7531dbd311b812c422ca985fddf5a:
- File
internal/manifest/files.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: 12309) [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: 12309) [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