-
-
Notifications
You must be signed in to change notification settings - Fork 18
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
How to manually handle cache expiration? #69
Comments
Each CacheManager implementation has a delete method you can use to manually delete a cache record by key. You could also potentially add cache bust logic to return a list of cache keys to remove under specified conditions. |
Is it possible to add a maximum expiration time? It is used to control response expiration. |
I would think it should be possible to add such logic in your application |
I added a max_ Stale Is this feasible? https://github.com/xiaohucode/http-cache/commit/f346d0304b9a2f5eb2942d75cc6a5e3cf479e368 |
i think so but I would want to make a few changes first, if you'd like to open a PR we can work through that there. |
use [CacheMode::IgnoreRules] How to manually handle cache expiration
The text was updated successfully, but these errors were encountered: