Sindbad~EG File Manager

Current Path : /usr/local/lib/python3.12/site-packages/pip/_vendor/cachecontrol/__pycache__/
Upload File :
Current File : //usr/local/lib/python3.12/site-packages/pip/_vendor/cachecontrol/__pycache__/cache.cpython-312.pyc

�

4Μg����dZddlmZddlmZddlmZmZmZerddl	m	Z	Gd�d�Z
Gd�d	e
�ZGd
�de
�Zy)
zb
The cache object API for implementing caches. The default is a thread
safe in-memory dictionary.
�)�annotations)�Lock)�IO�
TYPE_CHECKING�MutableMapping)�datetimec�>�eZdZdd�Z	d							dd�Zd	d�Zd
d�Zy)�	BaseCachec��t���N��NotImplementedError��self�keys  �I/usr/local/lib/python3.12/site-packages/pip/_vendor/cachecontrol/cache.py�getz
BaseCache.get���!�#�#�Nc��t��rr
�rr�value�expiress    r�setz
BaseCache.sets
��"�#�#rc��t��rr
rs  r�deletezBaseCache.deleterrc��yr�)rs r�closezBaseCache.closes��r�r�str�returnzbytes | Noner�rr!r�bytesrzint | datetime | Noner"�None�rr!r"r%)r"r%)�__name__�
__module__�__qualname__rrrrrrrr
r
s=��$�HL�$��$�$�$�/D�$�	
�$�
$�
rr
c�@�eZdZddd�Zdd�Z	d							d	d�Zd
d�Zy)�	DictCacheNc�8�t�|_|xsi|_yr)r�lock�data)r�	init_dicts  r�__init__zDictCache.__init__#s���F��	��O���	rc�:�|jj|d�Sr)r.rrs  rrz
DictCache.get's���y�y�}�}�S�$�'�'rc��|j5|jj||i�ddd�y#1swYyxYwr)r-r.�updaters    rrz
DictCache.set*s+���Y�Y��I�I���c�5�\�*��Y�Y�s�4�=c��|j5||jvr|jj|�ddd�y#1swYyxYwr)r-r.�poprs  rrzDictCache.delete0s/��
�Y�Y��d�i�i���	�	�
�
�c�"��Y�Y�s�*A�A	r)r/z!MutableMapping[str, bytes] | Noner"r%r r#r&)r'r(r)r0rrrrrrr+r+"s=��$�(�HL�+��+�$�+�/D�+�	
�+�#rr+c� �eZdZdZdd�Zdd�Zy)�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()``.
    c��t��rr
)rr�bodys   r�set_bodyzSeparateBodyBaseCache.set_bodyCrrc��t��)z6
        Return the body as file-like object.
        r
rs  r�get_bodyzSeparateBodyBaseCache.get_bodyFs
��"�#�#rN)rr!r9r$r"r%)rr!r"zIO[bytes] | None)r'r(r)�__doc__r:r<rrrr7r76s��
�$�$rr7N)
r=�
__future__r�	threadingr�typingrrrrr
r+r7rrr�<module>rAs@��
�#��4�4��!�

�

� #�	�#�($�I�$r

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists