Overview

Ensure that my_project/settings.py has the following specific configurations (in addition to the defaults and your other app needs):

INSTALLED_APPS = (

)

# not suitable for deployment, for testing only, for deployment strongly consider memcached. CACHE_BACKEND = "locmem:///" CACHE_TIMEOUT = 60*5 CACHE_PREFIX = "S"

Example

from keyedcache import cache_function

@cache_function(60*10) def myfunc():

"""cache for ten (10) minutes."""