This is a simple CLI Redis inspired project that supports the GET
, SET
, and INCR
commands.
- Have rust installed (if you don't, visit rustup.rs)
- Run the build via
cargo run
:
❯ cargo run
Compiling redis v0.1.0 (/Users/user/redis)
Finished dev [unoptimized + debuginfo] target(s) in 1.52s
Running `target/debug/redis`
> set foo 1
OK
> set hello world
OK
> get hello
world
> incr foo
(integer) 2
Here's a primer on Redis cheatsheet.
Make sure you have wasm-pack installed. Good getting started guide.
❯ wasm-pack --version
wasm-pack 0.12.1
❯ wasm-pack build
- Address various
todo!()
in the codebase - Better module structure, main file is too big
- Break up each action into its own file (module)
- Export a wasm lib so we can run this in the browser
- Add new Redis actions. Feel free to contribute!