Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OnEvicted is not called for every expired value #176

Open
VovkoO opened this issue Apr 2, 2024 · 1 comment
Open

OnEvicted is not called for every expired value #176

VovkoO opened this issue Apr 2, 2024 · 1 comment

Comments

@VovkoO
Copy link

VovkoO commented Apr 2, 2024

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

@pzentenoe
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants