Skip to content

bukv/cache-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cache server on Go

Server start

go run ./...

Examples

Save text with infinity TTL

curl -X POST http://localhost:8080/cache -H "Content-Type: application/json" -d '{"key":"super_key","value":"Some important message"}'

Get saved text by key

curl "http://localhost:8080/cache?key=super_key"

Remove text by key

curl -X DELETE "http://localhost:8080/cache?key=super_key"

Save text with TTL 10 sec

curl -X POST http://localhost:8080/cache -H "Content-Type: application/json" -d '{"key":"temp_key","value":"Some temp message","ttl":10}'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages