-
-
Notifications
You must be signed in to change notification settings - Fork 808
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
Please add caching example #627
Comments
I've tried this:
it's working fine but i'm not sure if it can be optimized to improve efficiency and performance |
PR welcome where comments on specifics can be made. |
Ok, but I’ll have to fix the problem when redis is not running, it will always return status 500 when session.get() or session.set() is called, the error catch block is not working. and I’ll have to implement header Cache-Control: no-cache directive in case I want to skip cache. |
Ready for review #630 |
I want to wrap an in-memory cache middleware for all GET routes that returns 200, the cache key should be based on the full request URL and can be customized, If I send "Cache-Control": "no-cache" in the request headers, Actix should process the request and overwrite the new response in the cache key, and I want the ability to delete the cache key in case of successful data update, so I can get the new data again in the next request.
Thanks.
The text was updated successfully, but these errors were encountered: