Latest Version: 0.9.6.2

cache

Caching decorators


Attributes

a log

<logging.Logger instance at 0x270d0a8>

Functions

f beaker_cache(key='cache_default', expire='never', type='dbm', query_args=False, **b_kwargs) ...

Cache decorator utilizing Beaker. Caches action or other function that returns a pickle-able object as a result.

Optional arguments:

key
None - No variable key, uses function name as key "cache_default" - Uses all function arguments as the key string - Use kwargs[key] as key list - Joins the arguments in the list
expire
Time in seconds before cache expires, defaults to never
type
Type of cache to use: dbm, memory, file, memcached
query_args
Uses the query arguments as the key, defaults to False

If cache_enabled is set to False in the .ini file, then cache is disabled globally.

See the source for more information.

Top