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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

Flask_Caching-1.3.0-py2.py3-none-any.whl (15.7 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: Flask-Caching-1.3.0.tar.gz
  • Upload date:
  • Size: 62.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for Flask-Caching-1.3.0.tar.gz
Algorithm Hash digest
SHA256 2a39eefac8c6681dbb0030eb769bc609d88670b40d534d32c2d18a30442c7869
MD5 6674e9e4c425b4020a4556285c39f47d
BLAKE2b-256 be9104bfd1b95ebe611c1b52508231bcfb5b4ee55a541dabb5cca32feedc2bac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for Flask_Caching-1.3.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 15e79ab6b656800cf71a406800e0095c1777c63fe11b9430313556fcf673c3ad
MD5 51cbc32edf7be030f2d6b0a49e4cd552
BLAKE2b-256 e050b9cee4a3f9761ac29b884389ab03a5e9d10864b90a31a88b03646b7669a3

See more details on using hashes here.

Supported by

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