.Cache
.Method | get |
Retrieve a value from the cache. |
Method | get_or_create |
Retrieve a value from the cache, using the given creation function to generate a new value. |
Method | invalidate |
Invalidate a value in the cache. |
Method | set |
Place a value in the cache. |
Class Variable | pass_context |
If True, the .Context will be passed to get_or_create as the name 'context'. |
Method | __init__ |
Undocumented |
Instance Variable | cache |
Undocumented |
mako.ext.beaker_cache.BeakerCacheImpl
Parameters | |
key | the value's key. |
**kw | cache configuration arguments. |
mako.ext.beaker_cache.BeakerCacheImpl
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.
Parameters | |
key | the value's key. |
creation_function | function that when called generates a new value. |
**kw | cache configuration arguments. |
mako.ext.beaker_cache.BeakerCacheImpl
Parameters | |
key | the value's key. |
**kw | cache configuration arguments. |