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

Uploaded Source

File details

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

File metadata

File hashes

Hashes for Flask-Caching-1.0.0.tar.gz
Algorithm Hash digest
SHA256 9894b14e9c6f487b3ca7aeacbc5887392f10f11b0e1de9c1f8133b003780c396
MD5 3b27dbb1e60e9d38d8e12efe84a2ded4
BLAKE2b-256 3cb0fd457d1b34a3bb7a5d5dd80b69057ca18c41bc1472a3a2c5817b71cbd09c

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