3 unstable releases
0.1.0 | Nov 22, 2021 |
---|---|
0.0.4 | Oct 3, 2021 |
0.0.3 | Sep 19, 2021 |
#13 in #policies
120KB
3K
SLoC
MirrorCache
A reverse proxy supporting multiple cache policies, customized rules, configuration hot reloading. For mirror sites and also personal users!
Features
- Cache your dependencies in limited space with LRU/TTL cache policies
- Reload updated config without restarting the program
- Support customized rules
- Expose metrics like cache hit rate per rule, task count and more
- Support multiple storage backend (memory, local filesystem and S3)
Quick start
-
Download the latest release
or install with cargo:cargo install mirror-cache
or pull from docker hub:
docker pull seanchao/mirror-cache
-
Prepare a configuration file
-
Try it out! e.g
pip install -i http://localhost:9000 requests conda install -c http://localhost:9000 requests conda config --set custom_channels.pytorch http://localhost:9000/anaconda/cloud/ && conda install -c pytorch -y --download-only -v torchtext
Dependencies
~23–37MB
~584K SLoC