Module ImportFrom alias alias Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore AttributeLoad NameLoad attr Expr Call NameLoad Str Str Str ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad Expr Str Assign NameStore NameLoad Expr Str Assign NameStore NameLoad Expr Str FunctionDef arguments args NameParam NameParam defaults vararg body If BoolOpAnd Call NameLoad NameLoad AttributeLoad NameLoad attr NameLoad body Return Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults kwarg body Expr Str Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults kwarg body Expr Str If UnaryOpNot AttributeLoad AttributeLoad NameLoad attr attr body Return Call NameLoad Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults kwarg body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Assign NameStore NameLoad Expr Str FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str keyword Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad keyword BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad If UnaryOpNot NameLoad body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad NameLoad attr NameLoad orelse If CompareIn NameLoad AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad orelse Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad If BoolOpAnd NameLoad AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str NameLoad Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list Assign NameStore NameLoad Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults kwarg body Expr Str Raise Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults kwarg body Expr Str Raise Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Str Raise Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Str Raise Call NameLoad decorator_list decorator_list
N/A mako compat util N/A _cache_plugins N/A N/A util PluginLoader mako.cache N/A register_plugin N/A _cache_plugins register N/A N/A register_plugin beaker mako.ext.beaker_cache BeakerCacheImpl Cache N/A object N/A N/A 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.

     N/A impl None N/A Provide the :class:`.CacheImpl` in use by this :class:`.Cache`.

    This accessor allows a :class:`.CacheImpl` with additional
    methods beyond that of :class:`.Cache` to be used programmatically.

     N/A id None N/A Return the 'id' that identifies this cache.

    This is a value that should be globally unique to the
    :class:`.Template` associated with this cache, and can
    be used by a caching system to name a local container
    for data specific to this template.

     N/A starttime None N/A Epochal time value for when the owning :class:`.Template` was
    first compiled.

    A cache implementation may wish to invalidate data earlier than
    this timestamp; this has the effect of the cache for a specific
    :class:`.Template` starting clean any time the :class:`.Template`
    is recompiled, such as when the original template file changed on
    the filesystem.

     __init__ N/A N/A self template N/A args N/A N/A N/A N/A isinstance template N/A compat string_types args N/A N/A N/A N/A self template template N/A N/A self id N/A N/A template module __name__ N/A N/A self starttime N/A N/A template module _modified_time N/A N/A self _def_regions N/A N/A N/A self impl N/A N/A self _load_impl N/A N/A self template cache_impl N/A _load_impl N/A N/A self name N/A N/A N/A N/A N/A N/A _cache_plugins load name self N/A get_or_create N/A N/A self key creation_function N/A kw N/A N/A Retrieve a value from the cache, using the given creation function
        to generate a new value. N/A N/A N/A self _ctx_get_or_create key creation_function None kw N/A _ctx_get_or_create N/A N/A self key creation_function context N/A kw N/A N/A Retrieve a value from the cache, using the given creation function
        to generate a new value. N/A N/A N/A N/A self template cache_enabled N/A N/A N/A creation_function N/A N/A N/A N/A self impl get_or_create key creation_function N/A N/A self _get_cache_kw kw context N/A set N/A N/A self key value N/A kw N/A N/A Place a value in the cache.

        :param key: the value's key.
        :param value: the value.
        :param \**kw: cache configuration arguments.

         N/A N/A N/A N/A self impl set key value N/A N/A self _get_cache_kw kw None N/A N/A put set N/A A synonym for :meth:`.Cache.set`.

    This is here for backwards compatibility.

     get N/A N/A self key N/A kw N/A N/A Retrieve a value from the cache.

        :param key: the value's key.
        :param \**kw: cache configuration arguments.  The
         backend is configured using these arguments upon first request.
         Subsequent requests that use the same series of configuration
         values will use that same backend.

         N/A N/A N/A N/A self impl get key N/A N/A self _get_cache_kw kw None N/A invalidate N/A N/A self key N/A kw N/A N/A Invalidate a value in the cache.

        :param key: the value's key.
        :param \**kw: cache configuration arguments.  The
         backend is configured using these arguments upon first request.
         Subsequent requests that use the same series of configuration
         values will use that same backend.

         N/A N/A N/A N/A self impl invalidate key N/A N/A self _get_cache_kw kw None N/A invalidate_body N/A N/A self N/A N/A N/A Invalidate the cached content of the "body" method for this
        template.

         N/A N/A N/A self invalidate render_body __M_defname render_body N/A invalidate_def N/A N/A self name N/A N/A N/A Invalidate the cached content of a particular ``<%def>`` within this
        template.

         N/A N/A N/A self invalidate N/A render_%s name __M_defname N/A render_%s name N/A invalidate_closure N/A N/A self name N/A N/A N/A Invalidate a nested ``<%def>`` within this template.

        Caching of nested defs is a blunt tool as there is no
        management of scope -- nested defs that use cache tags
        need to have names unique of all other nested defs in the
        template, else their content will be overwritten by
        each other.

         N/A N/A N/A self invalidate name __M_defname name N/A _get_cache_kw N/A N/A self kw context N/A N/A N/A defname N/A N/A kw pop __M_defname None N/A N/A defname N/A N/A tmpl_kw N/A N/A N/A N/A self template cache_args copy N/A N/A N/A tmpl_kw update kw N/A N/A N/A defname N/A self _def_regions N/A N/A tmpl_kw N/A N/A self _def_regions N/A defname N/A N/A tmpl_kw N/A N/A N/A N/A self template cache_args copy N/A N/A N/A tmpl_kw update kw N/A N/A N/A self _def_regions N/A defname tmpl_kw N/A N/A context N/A N/A self impl pass_context N/A N/A tmpl_kw N/A N/A tmpl_kw copy N/A N/A N/A tmpl_kw setdefault context context N/A tmpl_kw N/A N/A CacheImpl N/A object N/A N/A Provide a cache implementation for use by :class:`.Cache`. __init__ N/A N/A self cache N/A N/A N/A N/A self cache cache N/A N/A pass_context False N/A If ``True``, the :class:`.Context` will be passed to
    :meth:`get_or_create <.CacheImpl.get_or_create>` as the name ``'context'``.
     get_or_create N/A N/A self key creation_function N/A kw N/A N/A Retrieve a value from the cache, using the given creation function
        to generate a new value.

        This function *must* return a value, either from
        the cache, or via the given creation function.
        If the creation function is called, the newly
        created value should be populated into the cache
        under the given key before being returned.

        :param key: the value's key.
        :param creation_function: function that when called generates
         a new value.
        :param \**kw: cache configuration arguments.

         N/A N/A NotImplementedError N/A set N/A N/A self key value N/A kw N/A N/A Place a value in the cache.

        :param key: the value's key.
        :param value: the value.
        :param \**kw: cache configuration arguments.

         N/A N/A NotImplementedError N/A get N/A N/A self key N/A kw N/A N/A Retrieve a value from the cache.

        :param key: the value's key.
        :param \**kw: cache configuration arguments.

         N/A N/A NotImplementedError N/A invalidate N/A N/A self key N/A kw N/A N/A Invalidate a value in the cache.

        :param key: the value's key.
        :param \**kw: cache configuration arguments.

         N/A N/A NotImplementedError N/A N/A