fastapi-cache
fastapi-cache copied to clipboard
redis-server can be down
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.
Hello Will there be a fix for this problem (redis down)? A pull request is available. Many thanks and regards, Stephan