A very simple in-memory cache with a RESTful API
Install with go get github.com/gomicroprojects/plaincache
- This will be a very simple and limited in-memory cache service.
- We will only use the Go stdlib.
- No auth.
- String keys/values.
- No automatic eviction.
We will create a RESTful API over HTTP.
The whole path will act as the key.
GET /the/key
Will return the value or a HTTP status code 404 (Not Found) if the key does not exist.
POST /the/key
Will set the value of the key to the contents of the POST body.
DELETE /the/key
Will delete the contents of the key.
Start with plaincache.go