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

Invalidate entries #16

Open
tronta opened this issue Oct 21, 2022 · 1 comment
Open

Invalidate entries #16

tronta opened this issue Oct 21, 2022 · 1 comment

Comments

@tronta
Copy link

tronta commented Oct 21, 2022

Would it be possible to add a feature to discard all or single cache entries?

Eg providing two automatically generated functions for a cached function:

#[memoize]
fn get_config(id: String) -> Data {
fn get_config_clear_cache()

and

fn get_config_clear(id: String)
@dermesser
Copy link
Owner

Easy things first - dropping all entries from the cache.

Removing individual entries should also be possible, as the lookup functionality naturally exists already. I will try to take a look in the next few days.

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