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

Uploaded Source

Built Distribution

Flask_Caching-1.1.1-py2.py3-none-any.whl (14.9 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

File hashes

Hashes for Flask-Caching-1.1.1.tar.gz
Algorithm Hash digest
SHA256 352db16fb6b8f4e6f1a29ff5ad016deb3763c4adebe84a1795b769b00f570c95
MD5 415cea5167a921eed18b38d2166fd41d
BLAKE2b-256 b3bd96ac42c9b1dae6b3381370f5f02fb8a17ddc7b64abc2f4dd1ba4f1a03771

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for Flask_Caching-1.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ecf32aa836815bb7355c81da59453d3549071f98aa47d0838171a0c96511f465
MD5 02caca1d8ffceee040beeb70a58f848a
BLAKE2b-256 0d4fd2e3f75b60b4a7ee7ae0497fc5b96b6c9fa58c29b3d05083256217445626

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