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

Configure a fallback CACHE_TYPE in flask-cache

Open paolinux79 opened this issue 9 years ago • 2 comments

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 avatar Mar 24 '15 14:03 paolinux79

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?

paolinux79 avatar Mar 26 '15 10:03 paolinux79

Any update on this? Seems like a worthwhile feature

bkhakshoor avatar Apr 01 '21 05:04 bkhakshoor