go-cache
go-cache copied to clipboard
OnEvicted is not called for every expired value
When I try to get and overwrite a value that has already expired but has not yet been deleted from the cache, I get nil, overwrite it with fresh data, and the old data will not even get into the OnEvicted function
When I try to get and overwrite a value that has already expired but has not yet been deleted from the cache, I get nil, overwrite it with fresh data, and the old data will not even get into the OnEvicted function
Hi @VovkoO you can use this implementation https://github.com/pzentenoe/go-cache Regards