go get -u github.com/philchia/lru
import "github.com/philchia/lru"
cache := lru.New(10)
import "github.com/philchia/lru"
cache := lru.NewLockCache(10)
cache.Set("key", "value")
cache.Set("key", "value", time.Now())
if value :=cache.Get("key"); value != nil {
print(value)
}
cache := lru.New(10)
cache.Del("key")
lru is published under the MIT license