관리-도구
편집 파일: cache.cpython-38.pyc
U &?�f� � @ sr d Z ddlmZ ddlmZ ddlmZmZmZ er@ddl m Z G dd� d�Z G dd � d e �ZG d d� de �ZdS ) zb The cache object API for implementing caches. The default is a thread safe in-memory dictionary. � )�annotations)�Lock)�IO� TYPE_CHECKING�MutableMapping)�datetimec @ sP e Zd Zddd�dd�Zddddd d �dd�Zdd d�d d�Zd d�dd�ZdS )� BaseCache�str�bytes | None��key�returnc C s t � �d S �N��NotImplementedError��selfr � r �L/opt/hc_python/lib/python3.8/site-packages/pip/_vendor/cachecontrol/cache.py�get s z BaseCache.getN�bytes�int | datetime | None�None�r �value�expiresr c C s t � �d S r r �r r r r r r r �set s z BaseCache.setc C s t � �d S r r r r r r �delete s zBaseCache.delete)r c C s d S r r )r r r r �close s zBaseCache.close)N)�__name__� __module__�__qualname__r r r r r r r r r s �r c @ sT e Zd Zdddd�dd�Zddd �d d�Zdddd dd�dd�Zddd �dd�ZdS )� DictCacheNz!MutableMapping[str, bytes] | Noner )� init_dictr c C s t � | _|pi | _d S r )r �lock�data)r r$ r r r �__init__# s zDictCache.__init__r r r c C s | j �|d �S r )r&