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

redis-server can be down

Open mathbeal opened this issue 3 years ago • 1 comments

Hi,

Redis-server can be down and here is a small fix to deal with it.

The decorator will crash if ConnectionRefusedError is not catched during the several async call to backend. If on_event('startup') the redis-server is not available. The AssertionError init must be catched too.

mathbeal avatar Mar 30 '21 08:03 mathbeal

Hello Will there be a fix for this problem (redis down)? A pull request is available. Many thanks and regards, Stephan

stephanestermann avatar Nov 24 '21 07:11 stephanestermann