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

expose a flag to indicate if it was expired or removed in OnEvicted()

Open ashtonian opened this issue 8 years ago • 0 comments

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.

ashtonian avatar Jun 09 '17 00:06 ashtonian