HEX
Server: Apache
System: Linux zacp120.webway.host 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
User: govancoz (1003)
PHP: 8.3.26
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: //usr/local/lib/python3.7/site-packages/pip/_vendor/cachecontrol/__pycache__/cache.cpython-37.pyc
B

L��g��@srdZddlmZddlmZddlmZmZmZer@ddl	m	Z	Gdd�d�Z
Gdd	�d	e
�ZGd
d�de
�ZdS)
zb
The cache object API for implementing caches. The default is a thread
safe in-memory dictionary.
�)�annotations)�Lock)�IO�
TYPE_CHECKING�MutableMapping)�datetimec@sPeZdZddd�dd�Zddddd	d
�dd�Zdd	d�d
d�Zd	d�dd�ZdS)�	BaseCache�strzbytes | None)�key�returncCs
t��dS)N)�NotImplementedError)�selfr
�r�B/tmp/pip-unpacked-wheel-hv55ucu3/pip/_vendor/cachecontrol/cache.py�getsz
BaseCache.getN�byteszint | datetime | None�None)r
�value�expiresrcCs
t��dS)N)r)r
r
rrrrr�setsz
BaseCache.setcCs
t��dS)N)r)r
r
rrr�deleteszBaseCache.delete)rcCsdS)Nr)r
rrr�closeszBaseCache.close)N)�__name__�
__module__�__qualname__rrrrrrrrrsrc@sTeZdZdddd�dd�Zddd	�d
d�Zdddd
dd�dd�Zddd	�dd�ZdS)�	DictCacheNz!MutableMapping[str, bytes] | Noner)�	init_dictrcCst�|_|pi|_dS)N)r�lock�data)r
rrrr�__init__#szDictCache.__init__r	zbytes | None)r
rcCs|j�|d�S)N)rr)r
r
rrrr'sz
DictCache.getrzint | datetime | None)r
rrrc	Cs&|j�|j�||i�WdQRXdS)N)rr�update)r
r
rrrrrr*sz
DictCache.setc	Cs,|j�||jkr|j�|�WdQRXdS)N)rr�pop)r
r
rrrr0s
zDictCache.delete)N)N)rrrrrrrrrrrr"src@s2eZdZdZdddd�dd�Zddd	�d
d�ZdS)
�SeparateBodyBaseCacheag
    In this variant, the body is not stored mixed in with the metadata, but is
    passed in (as a bytes-like object) in a separate call to ``set_body()``.

    That is, the expected interaction pattern is::

        cache.set(key, serialized_metadata)
        cache.set_body(key)

    Similarly, the body should be loaded separately via ``get_body()``.
    r	rr)r
�bodyrcCs
t��dS)N)r)r
r
r#rrr�set_bodyCszSeparateBodyBaseCache.set_bodyzIO[bytes] | None)r
rcCs
t��dS)z6
        Return the body as file-like object.
        N)r)r
r
rrr�get_bodyFszSeparateBodyBaseCache.get_bodyN)rrr�__doc__r$r%rrrrr"6sr"N)
r&�
__future__r�	threadingr�typingrrrrrrr"rrrr�<module>s