go-cache icon indicating copy to clipboard operation
go-cache copied to clipboard

Flush calls onEvicted

Open pavelbazika opened this issue 5 years ago • 0 comments

I have some finalization code in my onEvicted which is needed to call on all cached objects when the application terminates. I've found the Flush function that cleans the cache, but it did not call onEvicted.

Now it does, when onEvicted handler is set.

pavelbazika avatar May 28 '20 14:05 pavelbazika