관리-도구
편집 파일: cache.cpython-36.opt-1.pyc
3 �Pf � @ 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)�NotImplemented)�self�key� r �/usr/lib/python3.6/cache.py�get s z BaseCache.getc C s t � �d S )N)r )r r �valuer r r �set s z BaseCache.setc C s t � �d S )N)r )r r r r r �delete s zBaseCache.deletec C s d S )Nr )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 )N)r �lock�data)r Z init_dictr r r �__init__ s zDictCache.__init__c C s | j j|d �S )N)r r )r r r r r r s z DictCache.getc C s&