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

Usage questions #1

Closed
yevyevyev opened this issue Jul 23, 2019 · 1 comment
Closed

Usage questions #1

yevyevyev opened this issue Jul 23, 2019 · 1 comment

Comments

@yevyevyev
Copy link

Thank you @hurshi for the awesome package! I got a few questions, maybe you can add the answers in the future to README?

  • how to invalidate manually the cache? should I set max-age to 0? (when user makes pull to refresh for example)
  • how to delete ALL items from cache (when the user logs in with another account)
@hurshi
Copy link
Owner

hurshi commented Jul 24, 2019

Thanks for your report, I have updated README, and add some example.
And this is my suggestion for your question:

  • _manager.delete(url);
  • _manager.clearAll();

@hurshi hurshi closed this as completed Jul 29, 2019
erickok pushed a commit to vrtdev/dio-http-cache that referenced this issue Jan 24, 2022
Update method to make it compatible with dio 4
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