Skip to main content

Adds caching support to your Flask application

Project description


Adds easy cache support to Flask.


The Cache Extension can either be initialized directly:

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:

cache = Cache(config={"CACHE_TYPE": "simple"})

app = Flask(__name__)

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Flask-Caching-1.7.1.tar.gz (66.1 kB view hashes)

Uploaded source

Built Distribution

Flask_Caching-1.7.1-py2.py3-none-any.whl (27.2 kB view hashes)

Uploaded py2 py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page