App Engine Python SDK  v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
Functions | Variables
google.appengine._internal.django.core.cache Namespace Reference

Functions

def parse_backend_uri
 
def get_cache
 

Variables

dictionary BACKENDS
 
tuple cache = get_cache(settings.CACHE_BACKEND)
 

Detailed Description

Caching framework.

This package defines set of cache backends that all conform to a simple API.
In a nutshell, a cache is a set of values -- which can be any object that
may be pickled -- identified by string keys.  For the complete API, see
the abstract BaseCache class in django.core.cache.backends.base.

Client code should not access a cache backend directly; instead it should
either use the "cache" variable made available here, or it should use the
get_cache() function made available here. get_cache() takes a backend URI
(e.g. "memcached://127.0.0.1:11211/") and returns an instance of a backend
cache class.

See docs/cache.txt for information on the public API.

Function Documentation

def google.appengine._internal.django.core.cache.parse_backend_uri (   backend_uri)
Converts the "backend_uri" into a cache scheme ('db', 'memcached', etc), a
host and any extra params that are required for the backend. Returns a
(scheme, host, params) tuple.

Variable Documentation

dictionary google.appengine._internal.django.core.cache.BACKENDS
Initial value:
1 = {
2  'memcached': 'memcached',
3  'locmem': 'locmem',
4  'file': 'filebased',
5  'db': 'db',
6  'dummy': 'dummy',
7 }