Skip to content

A convenient LRU cache server that supports REST API and Let's Encrypt.

License

Notifications You must be signed in to change notification settings

tidwall/lru-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A convenient LRU cache server that supports REST API and Let's Encrypt.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published