/opt/cloudlinux/venv/lib/python3.11/site-packages/mako/__pycache__
Edit: /opt/cloudlinux/venv/lib/python3.11/site-packages/mako/__pycache__/cache.cpython-311.pyc (8911B)
§
Jðo^>ðÚã óŽ — d dl mZ ej d¦ « Zej Z eddd¦ « G d„ d¦ « Z G d„ d ¦ « Zd
S )é )Úutilz
mako.cacheÚbeakerzmako.ext.beaker_cacheÚBeakerCacheImplc ól — e Zd ZdZdZ dZ dZ d„ Zd„ Zd„ Z d„ Z
d„ ZeZ d„ Z
d „ Zd
„ Zd„ Zd„ Zd
„ ZdS )ÚCacheaò Represents a data content cache made available to the module
space of a specific :class:`.Template` object.
.. versionadded:: 0.6
:class:`.Cache` by itself is mostly a
container for a :class:`.CacheImpl` object, which implements
a fixed API to provide caching services; specific subclasses exist to
implement different
caching strategies. Mako includes a backend that works with
the Beaker caching system. Beaker itself then supports
a number of backends (i.e. file, memory, memcached, etc.)
The construction of a :class:`.Cache` is part of the mechanics
of a :class:`.Template`, and programmatic access to this
cache is typically via the :attr:`.Template.cache` attribute.
Nc óà — t |t ¦ « r|rd S || _ |j j | _ |j j | _ i | _ | | j j
¦ « | _ d S ©N)Ú
isinstanceÚstrÚtemplateÚmoduleÚ__name__ÚidÚ_modified_timeÚ starttimeÚ_def_regionsÚ
_load_implÚ
cache_implÚimpl)Úselfr Úargss ú\/builddir/build/BUILD/cloudlinux-venv-1.0.12/venv/lib/python3.11/site-packages/mako/cache.pyÚ__init__zCache.__init__A se € õ �h¥Ñ$Ô$ð ¨ð ؈FØ ˆŒ
Ø”/Ô*ˆŒØ!œÔ7ˆŒØˆÔØ—O’O D¤MÔ$<Ñ=Ô=ˆŒ ˆ ˆ ó c óF — t |¦ « | ¦ « S r )Ú_cache_pluginsÚload©r Únames r r zCache._load_implL s € Ý×"Ò" 4Ñ(Ô(¨Ñ.Ô.Ð.r c ó" — | j ||dfi |¤ŽS )úcRetrieve a value from the cache, using the given creation function
to generate a new value.N)Ú_ctx_get_or_create©r ÚkeyÚcreation_functionÚkws r Ú
get_or_createzCache.get_or_createO s$ € ð 'ˆtÔ& sÐ,=¸tÐJÐJÀrÐJÐJÐJr c ó~ — | j j s
|¦ « S | j j ||fi | ||¦ « ¤ŽS )r! )r Ú
cache_enabledr r' Ú
_get_cache_kw)r r$ r% Úcontextr&