bluele / gcache

An in-memory cache library for golang. It supports multiple eviction policies: LRU, LFU, ARC

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

increment method in lfu.go cause memory leak

Neoysx opened this issue · comments

After init a lfu cache, i set some values in it. Then i get them frequently(like 400000 times), the memory grows very fast.
image
image

Probably duplicates this issue: #71 (comment)