Adds caching support to your Flask application
Adds easy cache support to Flask.
The Cache Extension can either be initialized directly:
.. code:: python
from flask import Flask
from flask_caching import Cache
app = Flask(__name__)
# For more configuration options, check out the documentation
cache = Cache(app, config={'CACHE_TYPE': 'simple'})
Or through the factory method:
.. code:: python
cache = Cache(config={'CACHE_TYPE': 'simple'})
app = Flask(__name__)
cache.init_app(app)
Documentation <https://pythonhosted.org/Flask-Caching/>
_Source Code <https://github.com/sh4nks/flask-caching>
_Issues <https://github.com/sh4nks/flask-caching/issues>
_original Flask-Cache Extension <https://github.com/thadeusb/flask-cache>
_