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

Make caches clearable and disposable #129

Open
Arithmomaniac opened this issue Sep 16, 2018 · 1 comment
Open

Make caches clearable and disposable #129

Arithmomaniac opened this issue Sep 16, 2018 · 1 comment

Comments

@Arithmomaniac
Copy link
Collaborator

Right now, there is no way to manually clear any of the caches (field, choice, MD5). In fact, since the caches share a global MemoryCache as a backing, they can't be cleared by garbage collection either.

  • Caches should have a method on them to clear their contents.
  • Caches should implement IDisposable, which does so
  • Any provider that uses caches should have a ClearCaches method available on it to clear the caches.
  • And provider that uses caches should be disposable, clearing its caches when done.
@KalinaTSD
Copy link
Collaborator

I'm going to present something here as proposal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Issue Prioritization
  
Prioritized
Development

No branches or pull requests

3 participants