CMD + K

flask-caching

Community

Adds caching support to your Flask application

Installation

To install this package, run one of the following:

Conda
$conda install winand::flask-caching

Usage Tracking

1.4.0
1 / 8 versions selected
Downloads (Last 6 months): 0

Description

Flask-Caching

Adds easy cache support to Flask.

Setup

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)

Links

  • 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>_

About

Summary

Adds caching support to your Flask application

Last Updated

Jul 10, 2018 at 14:22

License

BSD License

Supported Platforms

win-64