Configure a fallback CACHE_TYPE in flask-cache
paolinux79 opened this issue · 2 comments
paolinux79 commented
I am having great speed up using flask-cache configured to work with a redis-server instance. However, if the redis-server becomes unavailable I get an error message:
redis.exceptions.ConnectionError
ConnectionError: Error 111 connecting to localhost:6379. Connection refused.
Since chaching is just to increase performance I would like to configure a fallback (slower) CACHE_TYPE (e.g., filesystem) to deal with redis-server problems without affecting flask functionalities.
paolinux79 commented
Hi flask_cache gurus,
I tried to handle the problem and i pushed the solution here: https://github.com/paolinux79/flask-cache
Could you please give it a glance?
bkhakshoor commented
Any update on this? Seems like a worthwhile feature