Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Add CachedDownloadManager #62
This is a prototype of Download cache.
The main idea is to have a local repository which stores all downloaded packages. Also we can add a cli in the future to work with this storage (add/remove packages). May be this storage can be used for package servers.
I've added some utils for archives, which can be used in Downloaders.
For me it will be cleaner to use only WritableRepositoryInterface without separate PackageStorageInterface (may be encapsulate it inside some implementation of repository). But there are some problems: WritableRepository does not allow to pass a downloaded location; repository is used on the installer level while cache implementation on the downloader level is more logical.
This comment has been minimized.
This comment has been minimized.Show comment Hide comment
@henrikbjorn yup, but not much. The problem for now is that we have bigger issues with downloaders. When remote service is slow with response or when