class documentation

class Cache(base.Cache):

Constructor: Cache(max_age)

View In Hierarchy

A cache with app engine memcache API.

Method __init__ Constructor.
Method get Gets the content from the memcache with a given key.
Method set Sets the given key and content in the cache.
Instance Variable _max_age Undocumented
def __init__(self, max_age):

Constructor.

Parameters
max_ageCache expiration in seconds.
def get(self, url):

Gets the content from the memcache with a given key.

Parameters
urlstring, the key for the cache.
Returns
object, the value in the cache for the given key, or None if the key is not in the cache.
def set(self, url, content):

Sets the given key and content in the cache.

Parameters
urlstring, the key for the cache.
contentstring, the discovery document.
_max_age =

Undocumented