mirror-cache 0.0.3

A customizable reverse proxy with cache
mirror-cache-0.0.3 is not a library.

A reverse proxy supporting multiple cache policies, customized rules, configuration hot reloading. For mirror sites and also personal users!

docs | demo server

Features

  • Cache your dependencies on limited disk 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

Quick start

  1. Download the latest release, or build from source:
cargo run
  1. Prepare a configuration file

  2. Try it out:

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

# Ubuntu
# In /etc/apt/sources.list: change links like http://xxx.ubuntu.com/ubuntu into http://localhost:9000/ubuntu
apt-get update