googleapiclient.discovery_cache.base.Cache

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

# Class Cache

source code

    A base abstract cache class.

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]
| __metaclass__ = `abc.ABCMeta`

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`