A WASM component client for Valkey (and Redis).
Prereqs:
- a rust toolchain with
wasm32-unknown-unknownandwasm32-wasip2targets (rustup target add wasm32-unknown-unknownandrustup target add wasm32-wasip2) cargo componentwacwkg
make componentsPrereqs:
- build the components (see above)
- a
wasi:cli/commandcompatible runtime (like wasmtime) - access to a running Valkey server
wasmtime run -Sinherit-network -Sallow-ip-name-lookup lib/cli.wasm keys '*'- use
--hostto specify a host other than127.0.0.1 - use
--portto specify a port other than6379 -Sallow-ip-name-lookupis only required if a hostname is used for the connection instead of an IP address.
To aid incremental development a make target is available to rebuild and run the CLI:
make run cmd="hello"The Componentized project follow the Contributor Covenant Code of Conduct. In short, be kind and treat others with respect.
General discussion and questions about the project can occur in the project's GitHub discussions.
The Componentized project team welcomes contributions from the community. A contributor license agreement (CLA) is not required. You own full rights to your contribution and agree to license the work to the community under the Apache License v2.0, via a Developer Certificate of Origin (DCO). For more detailed information, refer to CONTRIBUTING.md.
This project was conceived in discussion between Mark Fisher and Scott Andrews.
Apache License v2.0: see LICENSE for details.