I wrote a stupid cache service so I could use this pun for a name.
For Fun
You really shouldn't but if you insist...
git clone [email protected]:BenDavidAaron/johnny-cache.git
(get a copy of the repo)cd johnny-cache
(go into the repo)python3.10 -m venv venv
(make a new venv)source venv/bin/activate
(turn on your venv)export JOHNNY_CACHE_DATA_PATH=~/path/down/to/mexico
(pick a place to persist your cache in case of crash)export JOHNNY_CACHE_FLUSH_SIZE=1000
(set max number of puts before an object is persisted, depends on your usage pattern)./scripts/run.sh
(to start a development server)
git clone [email protected]:BenDavidAaron/johnny-cache.git
(get a copy of the repo)cd johnny-cache
(go into the repo)docker build -t johnny-cache .
(feed Johnny to the Whale)docker run johnny-cache -p NNNN:80 -v ~/opt/data/:/local/path/to_cache
(swim away)