A really bad memcache "clone"
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.idea
src
.gitignore
Cargo.toml
LICENSE.txt
README.md

README.md

badcache

Introduction

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.

Running

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"

License

Released under the MIT License.