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

Track where things came from so can clear caches only from a particular package? #2

Open
oxinabox opened this issue Mar 18, 2024 · 1 comment

Comments

@oxinabox
Copy link
Contributor

If so might want to use a macro around the constructor call, so we can pull the @__MODULE__ out.
e.g @new_cache Dict{Int, Function}()

@aviatesk
Copy link
Member

I thought about that too, but when you get to the point of calling clear_all_caches! from the REPL, you'd need to do something like clear_all_caches!(DAECompiler) anyway. So, if we think it would be better to keep things consistent, maybe we want new_cache(@__MODULE__, ...).

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