:py:mod:`dissect.target.helpers.cache` ====================================== .. py:module:: dissect.target.helpers.cache Module Contents --------------- Classes ~~~~~~~ .. autoapisummary:: dissect.target.helpers.cache.LineWriter dissect.target.helpers.cache.LineReader dissect.target.helpers.cache.CacheWriter dissect.target.helpers.cache.Cache Functions ~~~~~~~~~ .. autoapisummary:: :nosignatures: dissect.target.helpers.cache.wrap Attributes ~~~~~~~~~~ .. autoapisummary:: dissect.target.helpers.cache.Tee dissect.target.helpers.cache.IGNORE_CACHE dissect.target.helpers.cache.ONLY_READ_CACHE dissect.target.helpers.cache.REWRITE_CACHE .. py:data:: Tee .. py:data:: IGNORE_CACHE .. py:data:: ONLY_READ_CACHE .. py:data:: REWRITE_CACHE .. py:class:: LineWriter(path: pathlib.Path) .. py:attribute:: fh .. py:method:: write(line: str) -> None .. py:method:: close() -> None .. py:class:: LineReader(path: pathlib.Path) .. py:attribute:: path .. py:method:: __iter__() -> collections.abc.Iterator[str] .. py:class:: CacheWriter(path: pathlib.Path, temp: pathlib.Path, reader: collections.abc.Iterator[Any], writer: flow.record.adapter.stream.StreamWriter | LineWriter) .. py:attribute:: path .. py:attribute:: temp .. py:attribute:: reader .. py:attribute:: writer .. py:method:: __iter__() -> collections.abc.Iterator[Any] .. py:method:: close() -> None .. py:class:: Cache(func: collections.abc.Callable, no_cache: bool = False, cls: type | None = None) .. py:attribute:: func .. py:attribute:: no_cache :value: False .. py:attribute:: fname .. py:attribute:: wrapper :value: None .. py:method:: open_reader(path: pathlib.Path, output: str) -> flow.record.adapter.stream.StreamReader | LineReader | None .. py:method:: open_writer(path: pathlib.Path, output: str) -> flow.record.adapter.stream.StreamWriter | LineWriter | None .. py:method:: cache_path(target: dissect.target.target.Target, key: tuple) -> pathlib.Path | None .. py:method:: call(*args, **kwargs) -> Any .. py:function:: wrap(func: collections.abc.Callable, no_cache: bool = False, cls: type | None = None) -> collections.abc.Callable