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

Add OnMissing callback #106

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add OnMissing callback #106

wants to merge 1 commit into from

Conversation

adregner
Copy link

Not sure if this is of interest for many others or the project in general, but it was useful for me and thought I'd share.

My use case is pretty simple and I wanted to keep it simple by adding this so I can use it as a self-filling cache. The many different ways that Cache looks for values is duplicated all over so I didn't bother refactoring that all to use this callback unless this idea is of use to others in which case I can do that too. I presume there are performance implications to doing that though.

Repository owner deleted a comment from pablodz Jan 8, 2024
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

Successfully merging this pull request may close these issues.

None yet

1 participant