관리-도구
편집 파일: cache.cpython-39.pyc
a ��Re% � @ s4 d Z ddlmZ G dd� de�ZG dd� de�ZdS )zb The cache object API for implementing caches. The default is a thread safe in-memory dictionary. � )�Lockc @ s, e Zd Zdd� Zdd� Zdd� Zdd� Zd S ) � BaseCachec C s t � �d S �N��NotImplementedError��self�key� r ��/builddir/build/BUILDROOT/alt-python39-pip-21.3.1-2.el8.x86_64/opt/alt/python39/lib/python3.9/site-packages/pip/_vendor/cachecontrol/cache.py�get s z BaseCache.getc C s t � �d S r r �r r �valuer r r �set s z BaseCache.setc C s t � �d S r r r r r r �delete s zBaseCache.deletec C s d S r r )r r r r �close s zBaseCache.closeN)�__name__� __module__�__qualname__r r r r r r r r r s r c @ s. e Zd Zd dd�Zdd� Zdd� Zdd � ZdS )� DictCacheNc C s t � | _|pi | _d S r )r �lock�data)r � init_dictr r r �__init__ s zDictCache.__init__c C s | j �|d �S r )r r r r r r r s z DictCache.getc C s: | j � | j�||i� W d � n1 s,0 Y d S r )r r �updater r r r r s z DictCache.setc C s@ | j �& || jv r| j�|� W d � n1 s20 Y d S r )r r �popr r r r r $ s zDictCache.delete)N)r r r r r r r r r r r r s r N)�__doc__� threadingr �objectr r r r r r �<module> s