Package ncache implements a simple LRU cache as well as a cache wrapper for populating caches that deduplicates lookups for the same cache key.
ncache uses go modules and can be installed via go get
.
go get github.com/nussjustin/ncache
- Examples
- Readthrough cache
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.