go-cache
go-cache copied to clipboard
expose a flag to indicate if it was expired or removed in OnEvicted()
I think it would be nice to provide a flag for the OnEvicted() function signature that indicated if the entry was deleted intentional or if the item was expired.
proposal: https://github.com/patrickmn/go-cache/pull/58
Unfortunately its a breaking change.