관리-도구
편집 파일: beaker_cache.cpython-38.pyc
U +�e � @ sZ d Z ddlmZ ddlmZ zddlmZ W n dZY nX dZda G dd � d e�Z dS ) z<Provide a :class:`.CacheImpl` for the Beaker caching system.� )� exceptions)� CacheImpl)�cacheFTNc sH e Zd ZdZ� fdd�Zdd� Zdd� Zdd � Zd d� Zdd � Z � Z S )�BeakerCacheImplz�A :class:`.CacheImpl` provided for the Beaker caching system. This plugin is used by default, based on the default value of ``'beaker'`` for the ``cache_impl`` parameter of the :class:`.Template` or :class:`.TemplateLookup` classes. c sH t st�d��td kr8d|jjkr0|jjd ant�� at� � |� d S )Nz8Can't initialize Beaker plugin; Beaker is not installed.�manager) � has_beakerr ZRuntimeException� _beaker_cache�template� cache_args�beaker_cacheZCacheManager�super�__init__)�selfr �� __class__� �C/opt/hc_python/lib/python3.8/site-packages/mako/ext/beaker_cache.pyr s �zBeakerCacheImpl.__init__c K s� |� dd �}d|kr$|� d�|d<