Implementation of mini-redis on Tokio tutorial
- Rust 1.69.0
- Installation
cargo install mini-redis
- Run
mini-redis-server
- Read / Write
# Read
mini-redis-cli get key1
# (nil)
# Write
mini-redis-cli set key1 value1
# Read
mini-redis-cli get key1
# "value1"
- Run my-mini-redis server
cargo run
- Run my-mini-redis server on watch mode
cargo watch -x run
- Run client code
cargo run --example test-mini-redis
cargo run --example test-mini-redis-concurrent
- (Zenn) Tokio チュートリアル (日本語訳)
- Official Resources