gcache icon indicating copy to clipboard operation
gcache copied to clipboard

expire check interval

Open Icemap opened this issue 3 years ago • 2 comments

I add an expire check interval in gcache. It can deal the situation when we need delete expire key timely. Such as using AddedFunc and EvictedFunc to monitoring key's lifecycle. PTAL.

木村くん、ご覧ください。お願いいたします。 @bluele

Icemap avatar May 06 '21 14:05 Icemap

PTAL @bluele

Icemap avatar May 24 '21 06:05 Icemap

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

DoubleDi avatar Dec 03 '21 12:12 DoubleDi