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

Dynamic caching and easily assign methods that invalidate caches #16

Open
Mandera opened this issue Oct 18, 2022 Discussed in #5 · 0 comments
Open

Dynamic caching and easily assign methods that invalidate caches #16

Mandera opened this issue Oct 18, 2022 Discussed in #5 · 0 comments

Comments

@Mandera
Copy link
Collaborator

Mandera commented Oct 18, 2022

The issue is that sometimes you cannot cache a slow method because periodically it should return a different result.

Example:
cache: get_installed_modules()
invalidates-cache: install_module()

Even better would be to let install_module modify the cache of get_installed_modules, might be prone to bugs though

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant