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

Uploaded Source

Built Distribution

Flask_Caching-1.4.0-py2.py3-none-any.whl (16.1 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

File hashes

Hashes for Flask-Caching-1.4.0.tar.gz
Algorithm Hash digest
SHA256 e34f24631ba240e09fe6241e1bf652863e0cff06a1a94598e23be526bc2e4985
MD5 23594341c7104dc0ab09a57a29e7a4e9
BLAKE2b-256 f24e0a8bd13b736c59768e69c39fe7ce48470275cf83edc4b7342509bb9f1a1a

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for Flask_Caching-1.4.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 44fe827c6cc519d48fb0945fa05ae3d128af9a98f2a6e71d4702fd512534f227
MD5 ac7ea3bb88154bf79ac339149fddb292
BLAKE2b-256 63c05dce9fe8372a7b57b60ec7650e1aeb1a2f861393b0c6e7e2dcb71d2f31ab

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