flask-cache
flask-cache copied to clipboard
Configure a fallback CACHE_TYPE in flask-cache
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.
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?
Any update on this? Seems like a worthwhile feature