go-cache
go-cache copied to clipboard
Flush calls onEvicted
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.