Skip to content

IgnacioFan/goto-cache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Go Cache

An implementation of in-memory cache in Go, the applicaiton can

  1. hold multiple data
  2. keep time limited data in memory
  3. support data lock to maintain data consistency
  4. evict cache data by LRU policy

How to use?

Step1: start out the application

go run .

Step2: visit the endpoint below and view logs in terminal

curl http://localhost:8080

APIs

  • Set
  • Get

Reference