-
Notifications
You must be signed in to change notification settings - Fork 44
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
on-get callback #36
Comments
I'm also not sure on the utility of it, but the callback could also include whether the key there or not. That might make it a little more useful. |
If the key is missed, whichever is better is to set the |
Another question around this would be whether having |
Callable[[key: Hashable, value: Any, existed: bool], None] Add |
👍 |
Done in #38 |
I think
on_get
callback may just be simple like this:The callback function.
In fact, I've hardly ever seen a on-get listener in cache libraries. Do we really need it? 🤷
The text was updated successfully, but these errors were encountered: