A demo project to learn a bit about Rocket, a web framework for Rust.
This horrible piece of code mimics a super minimal memcached with a very limited set of operations and few features. It's really just to learn something. Please, never actually use this.
After cloning the repository, build and run the code:
cargo build
cargo run
The service is now running at http://localhost:8000. All operations are invoked by GET requests to other URLs:
Verb | Path | Description |
---|---|---|
GET | /add/key /value |
Adds the specified key-value pair |
GET | /remove/key |
Removes the key-value pair at the specified key |
GET | /get/key |
Retrieves the value at key , or "null" |
Released under the MIT License.