New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEATURE] implement reference counting #52
Comments
We could do the slow migration/pruning step should probably run whenever Also, we need to ensure that cacache still operates properly if ref counts are missing. I'd probably lean towards only updating ref counts if there is one already, and only add them for new items added to the cache, so we don't end up in a situation where it says "references: 1" for something that actually has a bunch of references on it. |
What / Why
In order to safely prune old content after storing fresh content in the cache, we need some means of knowing if the old content has now become orphaned. The fastest approach to this is reference counting.
Implementation will require
The text was updated successfully, but these errors were encountered: