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__/file_cache.cpython-310.pyc
o

3�h
�@s^ddlmZddlmZmZddlmZer"ddlmZddl	m
Z
Gdd�de�ZdgZdS)	�)�annotations)�
TYPE_CHECKING�Callable)�Cache)�Path)�ContentStorec@s>eZdZddd�Zddd
�Zddd�Zddd�Zddd�ZdS)�	FileCache�
store_factory�Callable[[Path], ContentStore]�clearer�Callable[[], None] | None�return�NonecCs||_||_dS)N)r	r)�selfr	r�r�F/usr/local/lib/python3.10/dist-packages/virtualenv/cache/file_cache.py�__init__s
zFileCache.__init__�keyr�dict | NonecCs^d|�|�}}|���|��r|��}Wd�|SWd�|S1s(wY|S)z Get a value from the file cache.N)r	�locked�exists�read)rr�result�storerrr�gets


��
��z
FileCache.get�value�dictcCsB|�|�}|���|�|�Wd�dS1swYdS)zSet a value in the file cache.N)r	r�write)rrrrrrr�sets

"�z
FileCache.setcCsX|�|�}|���|��r|��Wd�dSWd�dS1s%wYdS)z#Remove a value from the file cache.N)r	rr�remove)rrrrrrr s


�"�zFileCache.removecCs|jdur|��dSdS)zClear the entire file cache.N)r)rrrr�clear's
�zFileCache.clearN)r	r
rrr
r)rrr
r)rrrrr
r)rrr
r)r
r)�__name__�
__module__�__qualname__rrrrr rrrrr
s



rN)
�
__future__r�typingrr�virtualenv.cacher�pathlibr�virtualenv.app_data.baserr�__all__rrrr�<module>s!�