Crates.io | karsher |
lib.rs | karsher |
version | 0.9.0 |
source | src |
created_at | 2022-05-17 20:00:14.226539 |
updated_at | 2022-07-13 11:34:52.253815 |
description | karsher is a dumb cache written in rust |
homepage | https://github.com/nbittich/karsher |
repository | |
max_upload_size | |
id | 588591 |
size | 121,680 |
╭───┬────────┬─────────┬──────────┬──────┬─────────┬─────────╮
│ # │ pid │ name │ status │ cpu │ mem │ virtual │
├───┼────────┼─────────┼──────────┼──────┼─────────┼─────────┤
│ 0 │ 886916 │ karsher │ Sleeping │ 0.00 │ 4.0 KiB │ 5.3 MiB │
╰───┴────────┴─────────┴──────────┴──────┴─────────┴─────────╯
-------------------------------------------------------------------------------
Language files blank comment code
-------------------------------------------------------------------------------
Rust 15 325 16 2110
-------------------------------------------------------------------------------
SUM: 15 325 16 2110
Static build using MUSL:
cargo build --release
should print "statically linked":
ldd target/x86_64-unknown-linux-musl/release/karsher
cargo install karsher --target x86_64-unknown-linux-musl
RUST_LOG=info karsher
docker build -t karsher .
docker run -it karsher
# open an in memory db
karsher --inmemory
# override db path & history path + fallback in memory in case of an error (default to false)
# path must exist! file doesn't have to.
karsher --dbpath /tmp/mydb.db --historypath /tmp/myhistory.txt --fallback