Convert Depot data storage to Redis #429
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This replaces the backend of the Depot's DataStore from LMDB to Redis. I've added some abstractions in the
dbcache
crate which are not complete but will be molded as we continue to build out our persistence layer in the vault. The Depot doesn't store data the way the Vault server does, so we're only using the most basic abstractions.The behaviour of the API should be completely unchanged with the exception of one addition. You can now list all packages of a given origin within a view. I'm not sure if we need this but it was easy to add so I just went ahead and did it.
The doctor tool is a little less feature-ful than it was before, but it also was never exactly complete. Right now it will blow away any views you have created and any packages you have assigned to them on repair. I'll need to add these features back in when I revisit it.