
vÅÏ^\  ã               @   s6   d  Z  d d l m Z m Z Gd d „  d e ƒ Z d S)zDummy cache backendé    )ÚDEFAULT_TIMEOUTÚ	BaseCachec                   s”   e  Z d  Z ‡  f d d †  Z e d d d „ Z d d d d „ Z e d d d	 „ Z e d d
 d „ Z d d d „ Z	 d d d „ Z
 d d „  Z ‡  S)Ú
DummyCachec                s   t  ƒ  j | | Ž  d  S)N)ÚsuperÚ__init__)ÚselfÚhostÚargsÚkwargs)Ú	__class__© úB/tmp/pip-build-8lau8j11/django/django/core/cache/backends/dummy.pyr      s    zDummyCache.__init__Nc             C   s&   |  j  | d | ƒ} |  j | ƒ d S)NÚversionT)Úmake_keyÚvalidate_key)r   ÚkeyÚvalueÚtimeoutr   r   r   r   Úadd
   s    zDummyCache.addc             C   s&   |  j  | d | ƒ} |  j | ƒ | S)Nr   )r   r   )r   r   Údefaultr   r   r   r   Úget   s    zDummyCache.getc             C   s&   |  j  | d | ƒ} |  j | ƒ d  S)Nr   )r   r   )r   r   r   r   r   r   r   r   Úset   s    zDummyCache.setc             C   s   |  j  | ƒ d S)NF)r   )r   r   r   r   r   r   r   Útouch   s    zDummyCache.touchc             C   s&   |  j  | d | ƒ} |  j | ƒ d  S)Nr   )r   r   )r   r   r   r   r   r   Údelete   s    zDummyCache.deletec             C   s&   |  j  | d | ƒ} |  j | ƒ d S)Nr   F)r   r   )r   r   r   r   r   r   Úhas_key    s    zDummyCache.has_keyc             C   s   d  S)Nr   )r   r   r   r   Úclear%   s    zDummyCache.clear)Ú__name__Ú
__module__Ú__qualname__r   r   r   r   r   r   r   r   r   r   r   )r   r   r      s   r   N)Ú__doc__Zdjango.core.cache.backends.baser   r   r   r   r   r   r   Ú<module>   s   