lru.go
Run the Go Lru test next to the implementation for concrete examples.
A small fixed-capacity LRU cache with zero dependencies.
Go Lru relies solely on the Go standard library — no external services, no dependencies to install, nothing to configure. You just drop it into your project and start using it.
import "github.com/example/golru"
cache := golru.New(100)
cache.Set("key", "value")
v, ok := cache.Get("key")