Package googleapiclient :: Package discovery_cache :: Module appengine_memcache :: Class Cache
[hide private]
[frames] | no frames]

Class Cache

source code


A cache with app engine memcache API.

Instance Methods [hide private]
 
__init__(self, max_age)
Constructor.
source code
 
get(self, url)
Gets the content from the memcache with a given key.
source code
 
set(self, url, content)
Sets the given key and content in the cache.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]

Inherited from base.Cache: __metaclass__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, max_age)
(Constructor)

source code 
Constructor.

Args:
  max_age: Cache expiration in seconds.

Overrides: object.__init__

get(self, url)

source code 
Gets the content from the memcache with a given key.

Args:
  url: string, 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.

Overrides: base.Cache.get
(inherited documentation)

set(self, url, content)

source code 
Sets the given key and content in the cache.

Args:
  url: string, the key for the cache.
  content: string, the discovery document.

Overrides: base.Cache.set
(inherited documentation)