Skip to content

Latest commit

 

History

History
60 lines (44 loc) · 2.61 KB

README.md

File metadata and controls

60 lines (44 loc) · 2.61 KB

Flask-Caching

Build Status Coverage Status PyPI Version License

Adds easy cache support to Flask.

This is a fork of the Flask-Cache extension and the following pull requests have been merged into this fork:

For the complete changelog, have a look at the CHANGES file.

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)

Links