Load Cache. `glbls` is an optional cell namespace used by loaders (e.g. `LazyLoader`) that need to resolve `__main__`-qualified pickle refs against the live cell scope.
(
self,
key: HashKey,
glbls: dict[str, Any] | None = None,
)
| 182 | |
| 183 | @abstractmethod |
| 184 | def load_cache( |
| 185 | self, |
| 186 | key: HashKey, |
| 187 | glbls: dict[str, Any] | None = None, |
| 188 | ) -> Cache | None: |
| 189 | """Load Cache. `glbls` is an optional cell namespace used by |
| 190 | loaders (e.g. `LazyLoader`) that need to resolve |
| 191 | `__main__`-qualified pickle refs against the live cell scope.""" |
| 192 | |
| 193 | @abstractmethod |
| 194 | def save_cache(self, cache: Cache) -> bool: |