Skip to content
This repository has been archived by the owner on Oct 5, 2020. It is now read-only.

rnelson/badcache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Releases

No releases published

Packages

No packages published

Languages