All Projects → tidwall → lru-server

tidwall / lru-server

Licence: MIT License
A convenient LRU cache server that supports REST API and Let's Encrypt.

Programming Languages

go
31211 projects - #10 most used programming language
Makefile
30231 projects

lru-server

A convenient LRU cache that's built on hashicorp/golang-lru and tidwall/modern-server. It uses a very simple HTTP REST api and supports Let's Encrypt.

Building

To start using lru-server, install Go and run:

$ make

Using

Start the server up.

$ ./lru-server
$ ./lru-server -s 100000    # specify an lru capacity of 100,000

Set a key

$ curl -d "my value" localhost:8000/mykey

Get a key

$ curl localhost:8000/mykey
my value

Delete a key

$ curl -X DELETE localhost:8000/mykey

Contact

Josh Baker @tidwall

License

lru-server source code is available under the MIT License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].