Open Icemap opened 3 years ago
PTAL @bluele
Hi @bluele! Sorry for the ping! Great cache!
Made a try to switch from https://github.com/patrickmn/go-cache as yours has clearly a superior feature - cache size limit. But, unfortunately, using your LRU based cache I have received multiple memory leaks in my applications. I am thinking it is because the expired elements are not getting evicted by themselves.
Would be awesome to merge this, as it would be very useful in combined with the expiration feature
I add an expire check interval in gcache. It can deal the situation when we need delete expire key timely. Such as using
AddedFunc
andEvictedFunc
to monitoring key's lifecycle. PTAL.木村くん、ご覧ください。お願いいたします。 @bluele