go-generics-cache
go-generics-cache copied to clipboard
Addressing strange memory leak
https://github.com/Code-Hex/go-generics-cache/blob/2601bb0d3c67fc00cdbd5763cc2361d2a363f0ee/cache.go#L277-L279
After some pprof job, I believe this line make memory leaks as this would not checking lru cache capacity before doing heap push.