cacheables.caches package¶
Submodules¶
cacheables.caches.base module¶
- class cacheables.caches.base.BaseCache¶
Bases:
ABC- abstract adopt(from_function_key: FunctionKey, to_function_key: FunctionKey) None¶
Assumes the to_function is using the same cache as the from_function. e.g. both using DiskCache with the same base_path, etc.
- abstract clear(function_key: FunctionKey) None¶
- abstract list(function_key: FunctionKey) List[InputKey]¶
cacheables.caches.disk module¶
- class cacheables.caches.disk.DiskCache(base_path: str | Path | None = None)¶
Bases:
BaseCache- adopt(from_function_key: FunctionKey, to_function_key: FunctionKey) None¶
Assumes the to_function is using the same cache as the from_function. e.g. both using DiskCache with the same base_path, etc.
- clear(function_key: FunctionKey) None¶
- list(function_key: FunctionKey) List[InputKey]¶
- cacheables.caches.disk.acquire_lock(func)¶