Home | History | Annotate | Download | only in mako

Lines Matching defs:Cache

1 # mako/cache.py
9 _cache_plugins = util.PluginLoader("mako.cache")
15 class Cache(object):
16 """Represents a data content cache made available to the module
20 :class:`.Cache` by itself is mostly a
28 The construction of a :class:`.Cache` is part of the mechanics
30 cache is typically via the :attr:`.Template.cache` attribute.
35 """Provide the :class:`.CacheImpl` in use by this :class:`.Cache`.
38 methods beyond that of :class:`.Cache` to be used programmatically.
43 """Return the 'id' that identifies this cache.
46 :class:`.Template` associated with this cache, and can
56 A cache implementation may wish to invalidate data earlier than
57 this timestamp; this has the effect of the cache for a specific
79 """Retrieve a value from the cache, using the given creation function
85 """Retrieve a value from the cache, using the given creation function
97 """Place a value in the cache.
101 :param \**kw: cache configuration arguments.
108 """A synonym for :meth:`.Cache.set`.
115 """Retrieve a value from the cache.
118 :param \**kw: cache configuration arguments. The
127 """Invalidate a value in the cache.
130 :param \**kw: cache configuration arguments. The
157 management of scope -- nested defs that use cache tags
184 """Provide a cache implementation for use by :class:`.Cache`."""
186 def __init__(self, cache):
187 self.cache = cache
195 """Retrieve a value from the cache, using the given creation function
199 the cache, or via the given creation function.
201 created value should be populated into the cache
207 :param \**kw: cache configuration arguments.
213 """Place a value in the cache.
217 :param \**kw: cache configuration arguments.
223 """Retrieve a value from the cache.
226 :param \**kw: cache configuration arguments.
232 """Invalidate a value in the cache.
235 :param \**kw: cache configuration arguments.