fastapi-cache
fastapi-cache copied to clipboard
[Question] Different expire value depending on HTTP response
Is there a possibility to set different expire value for cached responses depending on status code from external API.
E.g. if status code is 200
than it should be cached for longer period of time (2 months) and if its 400
than it should be 1 day