| |
- abc.ABC(builtins.object)
-
- JsonCache
-
- DirectoryCache
- FileCache
class DirectoryCache(JsonCache) |
|
DirectoryCache(pathlike: Union[pathlib.Path, str, NoneType], arbiter: vcorelib.io.arbiter.DataArbiter = <vcorelib.io.arbiter.DataArbiter object at 0x7faaa982fa40>) -> None
A class implementing a JSON cache based on a directory. |
|
- Method resolution order:
- DirectoryCache
- JsonCache
- abc.ABC
- builtins.object
Methods defined here:
- context_load(self, stack: contextlib.ExitStack, **kwargs) -> Dict[str, Union[str, int, float, bool, NoneType, Dict[str, Union[str, int, float, bool, NoneType]], List[Union[str, int, float, bool, NoneType]]]]
- Load the data.
Data and other attributes defined here:
- __abstractmethods__ = frozenset()
Methods inherited from JsonCache:
- __init__(self, pathlike: Union[pathlib.Path, str, NoneType], arbiter: vcorelib.io.arbiter.DataArbiter = <vcorelib.io.arbiter.DataArbiter object at 0x7faaa982fa40>) -> None
- Initialize this cache.
- loaded(self, **kwargs) -> Iterator[Dict[str, Union[str, int, float, bool, NoneType, Dict[str, Union[str, int, float, bool, NoneType]], List[Union[str, int, float, bool, NoneType]]]]]
- Provide loaded data so that the data is written back to disk on
completion.
Data descriptors inherited from JsonCache:
- __dict__
- dictionary for instance variables
- __weakref__
- list of weak references to the object
|
class FileCache(JsonCache) |
|
FileCache(pathlike: Union[pathlib.Path, str, NoneType], arbiter: vcorelib.io.arbiter.DataArbiter = <vcorelib.io.arbiter.DataArbiter object at 0x7faaa982fa40>) -> None
A class implementing a JSON cache based on a file. |
|
- Method resolution order:
- FileCache
- JsonCache
- abc.ABC
- builtins.object
Methods defined here:
- context_load(self, stack: contextlib.ExitStack, **kwargs) -> Dict[str, Union[str, int, float, bool, NoneType, Dict[str, Union[str, int, float, bool, NoneType]], List[Union[str, int, float, bool, NoneType]]]]
- Load the data.
Data and other attributes defined here:
- __abstractmethods__ = frozenset()
Methods inherited from JsonCache:
- __init__(self, pathlike: Union[pathlib.Path, str, NoneType], arbiter: vcorelib.io.arbiter.DataArbiter = <vcorelib.io.arbiter.DataArbiter object at 0x7faaa982fa40>) -> None
- Initialize this cache.
- loaded(self, **kwargs) -> Iterator[Dict[str, Union[str, int, float, bool, NoneType, Dict[str, Union[str, int, float, bool, NoneType]], List[Union[str, int, float, bool, NoneType]]]]]
- Provide loaded data so that the data is written back to disk on
completion.
Data descriptors inherited from JsonCache:
- __dict__
- dictionary for instance variables
- __weakref__
- list of weak references to the object
|
class JsonCache(abc.ABC) |
|
JsonCache(pathlike: Union[pathlib.Path, str, NoneType], arbiter: vcorelib.io.arbiter.DataArbiter = <vcorelib.io.arbiter.DataArbiter object at 0x7faaa982fa40>) -> None
A JSON cach interface. |
|
- Method resolution order:
- JsonCache
- abc.ABC
- builtins.object
Methods defined here:
- __init__(self, pathlike: Union[pathlib.Path, str, NoneType], arbiter: vcorelib.io.arbiter.DataArbiter = <vcorelib.io.arbiter.DataArbiter object at 0x7faaa982fa40>) -> None
- Initialize this cache.
- context_load(self, stack: contextlib.ExitStack, **kwargs) -> Dict[str, Union[str, int, float, bool, NoneType, Dict[str, Union[str, int, float, bool, NoneType]], List[Union[str, int, float, bool, NoneType]]]]
- Load the data.
- loaded(self, **kwargs) -> Iterator[Dict[str, Union[str, int, float, bool, NoneType, Dict[str, Union[str, int, float, bool, NoneType]], List[Union[str, int, float, bool, NoneType]]]]]
- Provide loaded data so that the data is written back to disk on
completion.
Data descriptors defined here:
- __dict__
- dictionary for instance variables
- __weakref__
- list of weak references to the object
Data and other attributes defined here:
- __abstractmethods__ = frozenset({'context_load'})
| |