Skip to content

Latest commit

 

History

30 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rune

In-memory key-value store over HTTP. Set, get, and delete string keys with configurable size limits, structured JSON logging, and Prometheus metrics.

Build

go build -o rune ./cmd/server

Run

go run ./cmd/server
# or
./rune

Flags

Flag Default Description
-port 8080 HTTP listen port
-max-key-size 256 Max key length (bytes)
-max-value-size 1048576 Max value length (bytes, 1 MiB)
-log-level debug debug, info, warn, or error

Example:

./rune -port 9090 -log-level info

API

Method Path Description
POST /set Form fields key, value
GET /get?key=... Returns value as plain text
DELETE /delete?key=... Removes key
GET /metrics Prometheus scrape endpoint
curl -X POST http://localhost:8080/set -d "key=foo&value=bar"
curl "http://localhost:8080/get?key=foo"
curl -X DELETE "http://localhost:8080/delete?key=foo"

Test

go test ./...

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages