fastapi-cache icon indicating copy to clipboard operation
fastapi-cache copied to clipboard

[Question] Different expire value depending on HTTP response

Open iprecali1 opened this issue 2 years ago • 0 comments

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

iprecali1 avatar Jan 17 '22 09:01 iprecali1