Skip to main content

Adds caching support to your Flask application

Project description

Flask-Caching

Adds easy cache support to Flask.

Setup

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__)
cache.init_app(app)

Project details


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.2.0.tar.gz (65.5 kB view details)

Uploaded Source

Built Distribution

Flask_Caching-1.2.0-py2.py3-none-any.whl (15.0 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file Flask-Caching-1.2.0.tar.gz.

File metadata

File hashes

Hashes for Flask-Caching-1.2.0.tar.gz
Algorithm Hash digest
SHA256 5f31d030efe8c4158a03a82928c7296651d4cabed41e1236fed043b754f96ba5
MD5 aab3b466c1b54780095d81fd7d457b52
BLAKE2b-256 172b13c709c8889b425d9a10188df577217fd251b7cd11162e833ef839196cbc

See more details on using hashes here.

Provenance

File details

Details for the file Flask_Caching-1.2.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for Flask_Caching-1.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 3928396e64138bdac63f67ea8438ecf16e44f3252ee560a4c857b47406b2418d
MD5 673e4c7a78b7c16d400cd30086081933
BLAKE2b-256 914421044eab252a65f58a4c128a3a50fc899d4e4ec4b126e293f9d0ec848ca5

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page