|
5 years ago | |
---|---|---|
dist-archive | 5 years ago | |
doc | 5 years ago | |
.legacy-codesite.toml | 5 years ago | |
README.md | 5 years ago |
An in-memory key-value store with HTTP interface.
This is a quick-and-dirty key-value store accessible over HTTP.
Usage of tagserver:
-bindaddr string
Bind address, can be blank
-datafile string
Persistence storage file (default "tagserver.json")
-debug
Display debug log on stdout
-port int
Port for web server (default 8080)
/get/KEY_FIRST/KEY_SECOND
/get/KEY_FIRST
/set/KEY_FIRST/KEY_SECOND
$ curl -X POST -d "thevalue" http://HOST/set/KEY_FIRST/KEY_SECOND
OK
$ curl http://HOST/get/KEY_FIRST/KEY_SECOND
thevalue
$ curl http://HOST/get/KEY_FIRST/
{"KEY_SECOND":"thevalue"}
$ curl http://HOST/get/KEY_FIRST/KEY_NOT_YET_SET
404 Not Found
2015-10-08: r04