|
|
__init__(self,
operation,
limit=3,
ignore_args=(),
force_kwargs=(),
cacher_enabled=True)
Cache an `operation`. |
source code
|
|
|
|
|
|
|
enable_cacher(self)
Enable the caching of this cacher. |
source code
|
|
|
|
id(self,
obj)
returns the self.id of an object, to be used in caching individual
self.ids |
source code
|
|
|
|
combine_inputs(self,
args,
kw,
ignore_args)
Combines the args and kw in a unique way, such that ordering of
kwargs does not lead to recompute |
source code
|
|
|
|
|
|
|
ensure_cache_length(self)
Ensures the cache is within its limits and has one place free |
source code
|
|
|
|
add_to_cache(self,
cache_id,
inputs,
output)
This adds cache_id to the cache, with inputs and output |
source code
|
|
|
|
__call__(self,
*args,
**kw)
A wrapper function for self.operation, |
source code
|
|
|
|
on_cache_changed(self,
direct,
which=None)
A callback funtion, which sets local flags when the elements of some
cached inputs change |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Inherited from object:
__delattr__,
__format__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__sizeof__,
__subclasshook__
|