ó
‚¾^Yc           @   s,   d  Z  d d l Z d e f d „  ƒ  YZ d S(   s5   An abstract class for caching the discovery document.iÿÿÿÿNt   Cachec           B   s;   e  Z d  Z e j Z e j d „  ƒ Z e j d „  ƒ Z RS(   s   A base abstract cache class.c         C   s   t  ƒ  ‚ d S(   sâ   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.
    N(   t   NotImplementedError(   t   selft   url(    (    sV   /tmp/pip-build-kpPAdC/google-api-python-client/googleapiclient/discovery_cache/base.pyt   get   s    c         C   s   t  ƒ  ‚ d S(   s•   Sets the given key and content in the cache.

    Args:
      url: string, the key for the cache.
      content: string, the discovery document.
    N(   R   (   R   R   t   content(    (    sV   /tmp/pip-build-kpPAdC/google-api-python-client/googleapiclient/discovery_cache/base.pyt   set%   s    (	   t   __name__t
   __module__t   __doc__t   abct   ABCMetat   __metaclass__t   abstractmethodR   R   (    (    (    sV   /tmp/pip-build-kpPAdC/google-api-python-client/googleapiclient/discovery_cache/base.pyR       s   	(   R	   R
   t   objectR    (    (    (    sV   /tmp/pip-build-kpPAdC/google-api-python-client/googleapiclient/discovery_cache/base.pyt   <module>   s   