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: xnsbb3110 (1041)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //usr/local/lib/python3.10/dist-packages/virtualenv/cache/__pycache__/cache.cpython-310.pyc
o

3�h��@s�ddlmZddlmZmZddlmZmZmZm	Z	zddlm
Z
Wney1ddlm
Z
Ynwe	ded�Z
Gdd�deee
�ZdgZd	S)
�)�annotations)�ABC�abstractmethod)�Any�Generic�Hashable�TypeVar)�Self�K)�boundc@sReZdZdZeddd��Zeddd��Zedd
d��Zeddd��Zddd�Z	dS)�Cachez�
    A generic cache interface.

    Add a close() method if the cache needs to perform any cleanup actions,
    and an __exit__ method to allow it to be used in a context manager.
    �keyr
�return�
Any | NonecC�t�)z�
        Get a value from the cache.

        :param key: the key to retrieve
        :return: the cached value, or None if not found
        ��NotImplementedError��selfr
�r�A/usr/local/lib/python3.10/dist-packages/virtualenv/cache/cache.py�get�z	Cache.get�valuer�NonecCr)zx
        Set a value in the cache.

        :param key: the key to set
        :param value: the value to cache
        r)rr
rrrr�set rz	Cache.setcCr)zW
        Remove a value from the cache.

        :param key: the key to remove
        rrrrr�remove*szCache.removecCr)zClear the entire cache.r�rrrr�clear3szCache.clearr	cCs|S)Nrrrrr�	__enter__8szCache.__enter__N)r
r
rr)r
r
rrrr)r
r
rr)rr)rr	)
�__name__�
__module__�__qualname__�__doc__rrrrrrrrrrrs		rN)�
__future__r�abcrr�typingrrrrr	�ImportError�typing_extensionsr
r�__all__rrrr�<module>s�/�