-
Notifications
You must be signed in to change notification settings - Fork 122
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
call expirationCallback automatically on cache.Close() #28
Comments
@ReneKroon |
Good idea, will have to check the feasibility first. |
@LihuaWu can you test if this solves the issue for you? I added code to run all expiration callbacks on Close() including a test to verify this. |
@ReneKroon |
I'd say it's a fair request, however during normal operation the expiration is async and this would imply that any items cleaned up just before calling |
@ReneKroon |
@ReneKroon and I have no further concerns. |
Ok, will release this officially then. |
Is it possible to call expirationCallback on each remaining keys in the cache, when calling cache.Close()?
The purpose is to keep the overall expirationCallback behavior the same?
The text was updated successfully, but these errors were encountered: