|
cached(callableobj,
keyarg=None)
Simple decorator to cache result of method call. |
source code
|
|
|
clear_cache(obj,
funcname)
Function to clear a cache handled by the cached decorator. |
source code
|
|
|
copy_cache(obj,
funcname,
cacheobj)
Copy cache for <funcname> from cacheobj to obj. |
source code
|
|
|
|
|
locked(acquire,
release)
Decorator taking two methods to acquire/release a lock as argument,
returning a decorator function which will call the inner method after
having called acquire(self) et will call release(self) afterwards. |
source code
|
|