mirror of
https://github.com/renovatebot/renovate.git
synced 2026-11-08 04:53:36 +00:00
9ad78755c5
* feat(cache): use binary envelopes for package cache writes * feat(cache): upgrade legacy file cache entries to envelopes on read The file backend's cleanup decides what to keep from cacache index metadata alone, so legacy entries (which store expiry inside the payload) would all be purged on the first sweep after upgrade, cooling the cache. Add a best-effort `upgradeLegacyEntry` hook on the base class, overridden only by the file backend, that rewrites a still-valid legacy entry as an envelope with the same expiry when it is read. The working set converts itself during the run, so it survives cleanup. Redis and SQLite govern expiry natively and inherit the no-op default.