Skip to content

Commit

Permalink
Fix import in documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
lepture committed Mar 11, 2015
1 parent 1c60076 commit cc7fb67
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/index.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Flask-Cache
================

.. module:: flask.ext.cache
.. module:: flask_cache

Installation
------------
Expand All @@ -20,7 +20,7 @@ Set Up
Cache is managed through a ``Cache`` instance::

from flask import Flask
from flask.ext.cache import Cache
from flask_cache import Cache

app = Flask(__name__)
# Check Configuring Flask-Cache section for more details
Expand Down Expand Up @@ -167,7 +167,7 @@ Set timeout to "del" to delete cached value::
If keys are provided, you may easily generate the template fragment key and
delete it from outside of the template context::

from flask.ext.cache import make_template_fragment_key
from flask_cache import make_template_fragment_key
key = make_template_fragment_key("key1", vary_on=["key2", "key3"])
cache.delete(key)

Expand All @@ -192,7 +192,7 @@ Here's an example script to empty your application's cache:

.. code-block:: python
from flask.ext.cache import Cache
from flask_cache import Cache
from yourapp import app, your_cache_config
Expand Down

0 comments on commit cc7fb67

Please sign in to comment.