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

Class Cache

source code

object --+
         |
        Cache

A base abstract cache class.

Nested Classes [hide private]
  __metaclass__
Metaclass for defining Abstract Base Classes (ABCs).
Instance Methods [hide private]
 
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__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  __abstractmethods__ = frozenset(['get', 'set'])
  _abc_cache = <_weakrefset.WeakSet object at 0x7fb69e350450>
  _abc_negative_cache = <_weakrefset.WeakSet object at 0x7fb69e3...
  _abc_negative_cache_version = 22
  _abc_registry = <_weakrefset.WeakSet object at 0x7fb69e350490>
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

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.

Decorators:
  • @abc.abstractmethod

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.

Decorators:
  • @abc.abstractmethod

Class Variable Details [hide private]

_abc_negative_cache

Value:
<_weakrefset.WeakSet object at 0x7fb69e350510>