IgnacioFan / goto-cache

An implementation of in-memory cache in Go

Repository from Github https://github.comIgnacioFan/goto-cacheRepository from Github https://github.comIgnacioFan/goto-cache

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

About

An implementation of in-memory cache in Go


Languages

Language:Go 100.0%