mirror-cache

Crates.iomirror-cache
lib.rsmirror-cache
version0.1.0
sourcesrc
created_at2021-09-19 15:13:13.175746
updated_at2021-11-22 15:03:56.434623
descriptionA customizable reverse proxy with cache
homepage
repositoryhttps://github.com/SeanChao/mirror-cache
max_upload_size
id453638
size196,742
Sean Chao (SeanChao)

documentation

README

MirrorCache

license GitHub Actions CI testing status GitHub releases latest version Github releases downloads docker pulls crate.io downloads

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 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

  1. Download the latest release
    or install with cargo:

     cargo install mirror-cache
    

    or pull from docker hub:

     docker pull seanchao/mirror-cache
    
  2. Prepare a configuration file

  3. 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
    
Commit count: 102

cargo fmt