GoCache is a key value in-memory database server written in GoLang
-capacity int
how big the cache will be, the old values will be evicted (default 100)
-port int
the server port number. (default 8080)
Example of usage: To insert or update a key
curl --request POST http://localhost:8080/cache/1/1
curl --request POST http://localhost:8080/cache/2/2
curl --request POST http://localhost:8080/cache/3/3
curl --request POST http://localhost:8080/cache/3/alskdjfhaslkdjfhasklfhdlkasjdhflaksfhdakljdshflkasjhfalskdjfhasldkhfasdklfdhlksajdfhas
To retrieve the key
curl --request GET localhost:8080/cache/3