Submit
Path:
~
/
/
proc
/
thread-self
/
root
/
opt
/
alt
/
python37
/
lib
/
python3.7
/
site-packages
/
mako
/
ext
/
__pycache__
/
File Content:
beaker_cache.cpython-37.opt-1.pyc
B �C]' � @ sZ d Z ddlmZ ddlmZ yddlmZ 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 sL t st�d��td kr8d|jjkr0|jjd ant�� att | �� |� d S )Nz8Can't initialize Beaker plugin; Beaker is not installed.�manager)� has_beakerr ZRuntimeException� _beaker_cache�template� cache_args�beaker_cacheZCacheManager�superr �__init__)�selfr )� __class__� �F/opt/alt/python37/lib/python3.7/site-packages/mako/ext/beaker_cache.pyr s zBeakerCacheImpl.__init__c K s� |� dd �}d|kr$|� d�|d<