karsher

Crates.iokarsher
lib.rskarsher
version0.9.0
sourcesrc
created_at2022-05-17 20:00:14.226539
updated_at2022-07-13 11:34:52.253815
descriptionkarsher is a dumb cache written in rust
homepagehttps://github.com/nbittich/karsher
repository
max_upload_size
id588591
size121,680
Nordine Bittich (nbittich)

documentation

README

Karsher - dumb cache / dumb terminal

  • use help for help
  • use static build under dist/musl or use cargo build / cargo run
╭───┬────────┬─────────┬──────────┬──────┬─────────┬─────────╮
│ # │  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 

install using cargo

cargo install karsher --target x86_64-unknown-linux-musl 

logs

RUST_LOG=info karsher

docker

docker build -t karsher .

docker run -it karsher 

Args - override

# 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

Commit count: 0

cargo fmt