ó
^ęWc           @   sF   d  Z  d d l m Z d e f d     YZ d e f d     YZ d S(   sb   
The cache object API for implementing caches. The default is a thread
safe in-memory dictionary.
i˙˙˙˙(   t   Lockt	   BaseCachec           B   s,   e  Z d    Z d   Z d   Z d   Z RS(   c         C   s   t     d  S(   N(   t   NotImplemented(   t   selft   key(    (    so   /private/var/folders/3n/6h2rwf155rn1m71wwyxn79n80000gn/T/pip-build-IcAT_k/pip/pip/_vendor/cachecontrol/cache.pyt   get
   s    c         C   s   t     d  S(   N(   R   (   R   R   t   value(    (    so   /private/var/folders/3n/6h2rwf155rn1m71wwyxn79n80000gn/T/pip-build-IcAT_k/pip/pip/_vendor/cachecontrol/cache.pyt   set   s    c         C   s   t     d  S(   N(   R   (   R   R   (    (    so   /private/var/folders/3n/6h2rwf155rn1m71wwyxn79n80000gn/T/pip-build-IcAT_k/pip/pip/_vendor/cachecontrol/cache.pyt   delete   s    c         C   s   d  S(   N(    (   R   (    (    so   /private/var/folders/3n/6h2rwf155rn1m71wwyxn79n80000gn/T/pip-build-IcAT_k/pip/pip/_vendor/cachecontrol/cache.pyt   close   s    (   t   __name__t
   __module__R   R   R   R	   (    (    (    so   /private/var/folders/3n/6h2rwf155rn1m71wwyxn79n80000gn/T/pip-build-IcAT_k/pip/pip/_vendor/cachecontrol/cache.pyR      s   			t	   DictCachec           B   s/   e  Z d d   Z d   Z d   Z d   Z RS(   c         C   s   t    |  _ | p i  |  _ d  S(   N(   R    t   lockt   data(   R   t	   init_dict(    (    so   /private/var/folders/3n/6h2rwf155rn1m71wwyxn79n80000gn/T/pip-build-IcAT_k/pip/pip/_vendor/cachecontrol/cache.pyt   __init__   s    c         C   s   |  j  j | d   S(   N(   R   R   t   None(   R   R   (    (    so   /private/var/folders/3n/6h2rwf155rn1m71wwyxn79n80000gn/T/pip-build-IcAT_k/pip/pip/_vendor/cachecontrol/cache.pyR      s    c         C   s+   |  j   |  j j i | | 6 Wd  QXd  S(   N(   R   R   t   update(   R   R   R   (    (    so   /private/var/folders/3n/6h2rwf155rn1m71wwyxn79n80000gn/T/pip-build-IcAT_k/pip/pip/_vendor/cachecontrol/cache.pyR       s    
c         C   s6   |  j  ' | |  j k r, |  j j |  n  Wd  QXd  S(   N(   R   R   t   pop(   R   R   (    (    so   /private/var/folders/3n/6h2rwf155rn1m71wwyxn79n80000gn/T/pip-build-IcAT_k/pip/pip/_vendor/cachecontrol/cache.pyR   $   s    
N(   R
   R   R   R   R   R   R   (    (    (    so   /private/var/folders/3n/6h2rwf155rn1m71wwyxn79n80000gn/T/pip-build-IcAT_k/pip/pip/_vendor/cachecontrol/cache.pyR      s   		N(   t   __doc__t	   threadingR    t   objectR   R   (    (    (    so   /private/var/folders/3n/6h2rwf155rn1m71wwyxn79n80000gn/T/pip-build-IcAT_k/pip/pip/_vendor/cachecontrol/cache.pyt   <module>   s   