https://github.com/bendavidaaron/johnny-cache
A dumb Caching service that should be rewritten in Golang or Rust
https://github.com/bendavidaaron/johnny-cache
Last synced: 3 months ago
JSON representation
A dumb Caching service that should be rewritten in Golang or Rust
- Host: GitHub
- URL: https://github.com/bendavidaaron/johnny-cache
- Owner: BenDavidAaron
- License: agpl-3.0
- Created: 2023-02-03T17:59:55.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-03-12T04:49:12.000Z (over 2 years ago)
- Last Synced: 2025-01-18T03:28:36.927Z (5 months ago)
- Language: Python
- Size: 43 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: license
Awesome Lists containing this project
README
# Johnny Cache
I wrote a stupid cache service so I could use this pun for a name.
# Why?
For Fun
# How (do I use this)?
You really shouldn't but if you insist...
## Natively
1. `git clone [email protected]:BenDavidAaron/johnny-cache.git` (get a copy of the repo)
1. `cd johnny-cache` (go into the repo)
1. `python3.10 -m venv venv` (make a new venv)
1. `source venv/bin/activate` (turn on your venv)
1. `export JOHNNY_CACHE_DATA_PATH=~/path/down/to/mexico` (pick a place to persist your cache in case of crash)
1. `export JOHNNY_CACHE_FLUSH_SIZE=1000` (set max number of puts before an object is persisted, depends on your usage pattern)
1. `./scripts/run.sh` (to start a development server)## Docker
1. `git clone [email protected]:BenDavidAaron/johnny-cache.git` (get a copy of the repo)
1. `cd johnny-cache` (go into the repo)
1. `docker build -t johnny-cache .` (feed Johnny to the Whale)
1. `docker run johnny-cache -p NNNN:80 -v ~/opt/data/:/local/path/to_cache` (swim away)