Skip to content

aftahi334/GoCache

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GoCache

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

About

key-value in-memory database server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%