HEX
Server: LiteSpeed
System: Linux php-prod-1.spaceapp.ru 5.15.0-157-generic #167-Ubuntu SMP Wed Sep 17 21:35:53 UTC 2025 x86_64
User: sport3497 (1034)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //usr/local/lib/python3.10/dist-packages/pip/_vendor/cachecontrol/__pycache__/cache.cpython-310.pyc
o

��h��@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@s8eZdZddd�Z	ddd
d�Zddd�Zddd�ZdS)�	BaseCache�key�str�return�bytes | NonecC�t���N��NotImplementedError��selfr	�r�I/usr/local/lib/python3.10/dist-packages/pip/_vendor/cachecontrol/cache.py�get�z
BaseCache.getN�value�bytes�expires�int | datetime | None�NonecCr
rr�rr	rrrrr�setsz
BaseCache.setcCr
rrrrrr�deleterzBaseCache.deletecCsdSrr)rrrr�closeszBaseCache.close�r	r
rrr�r	r
rrrrrr�r	r
rr)rr)�__name__�
__module__�__qualname__rrrrrrrrrs
�
rc@s:eZdZdddd�Zddd�Z	dddd�Zddd�ZdS)�	DictCacheN�	init_dict�!MutableMapping[str, bytes] | NonerrcCst�|_|pi|_dSr)r�lock�data)rr'rrr�__init__$szDictCache.__init__r	r
rcCs|j�|d�Sr)r*rrrrrr(sz
DictCache.getrrrrcCs<|j�|j�||i�Wd�dS1swYdSr)r)r*�updaterrrrr+s"�z
DictCache.setcCsR|j�||jvr|j�|�Wd�dSWd�dS1s"wYdSr)r)r*�poprrrrr1s
�"�zDictCache.deleter)r'r(rrr r!r")r#r$r%r+rrrrrrrr&#s
�r&c@s$eZdZdZddd	�Zddd�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	r
�bodyrrrcCr
rr)rr	r/rrr�set_bodyDrzSeparateBodyBaseCache.set_body�IO[bytes] | NonecCr
)z6
        Return the body as file-like object.
        rrrrr�get_bodyGszSeparateBodyBaseCache.get_bodyN)r	r
r/rrr)r	r
rr1)r#r$r%�__doc__r0r2rrrrr.7s
r.N)
r3�
__future__r�	threadingr�typingrrrrrr&r.rrrr�<module>s