A context object for caching a function’s return value each time it is called with the same input arguments.
All values are cached on the filesystem, in a deep directory structure.
see Reference documentation of the Memory class
| Parameters: | cachedir: string or None :
mmap_mode: {None, ‘r+’, ‘r’, ‘w+’, ‘c’}, optional :
compress: boolean, or integer :
verbose: int, optional :
|
|---|
Methods
| __init__(cachedir[, mmap_mode, compress, ...]) |
|
||
| cache([func, ignore, verbose, mmap_mode]) | Decorates the given function func to only compute its return value for input arguments not cached on disk. | ||
| clear([warn]) | Erase the complete cache directory. | ||
| debug(msg) | |||
| eval(func, *args, **kwargs) | Eval function func with arguments *args and **kwargs, in the context of the memory. | ||
| format(obj[, indent]) | Return the formated representation of the object. | ||
| warn(msg) |