U
    T³dm  ã                   @   s    d Z ddlZG dd„ deƒZdS )z5An abstract class for caching the discovery document.é    Nc                   @   s2   e Zd ZdZejZejdd„ ƒZejdd„ ƒZ	dS )ÚCachezA base abstract cache class.c                 C   s
   t ƒ ‚dS )zú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©ÚNotImplementedError)ÚselfÚurl© r   úH/tmp/pip-unpacked-wheel-huf2bctx/googleapiclient/discovery_cache/base.pyÚget   s    z	Cache.getc                 C   s
   t ƒ ‚dS )z¥Sets the given key and content in the cache.

        Args:
          url: string, the key for the cache.
          content: string, the discovery document.
        Nr   )r   r   Úcontentr   r   r   Úset&   s    z	Cache.setN)
Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚabcÚABCMetaÚ__metaclass__Úabstractmethodr	   r   r   r   r   r   r      s   
r   )r   r   Úobjectr   r   r   r   r   Ú<module>   s   