dissect.target.helpers.cache

Module Contents

Classes

Functions

Attributes

dissect.target.helpers.cache.Tee
dissect.target.helpers.cache.IGNORE_CACHE
dissect.target.helpers.cache.ONLY_READ_CACHE
dissect.target.helpers.cache.REWRITE_CACHE
class dissect.target.helpers.cache.LineWriter(path: pathlib.Path)
fh
write(line: str) → None
close() → None
class dissect.target.helpers.cache.LineReader(path: pathlib.Path)
path
__iter__() → collections.abc.Iterator[str]
class dissect.target.helpers.cache.CacheWriter(path: pathlib.Path, temp: pathlib.Path, reader: collections.abc.Iterator[Any], writer: flow.record.adapter.stream.StreamWriter | LineWriter)
path
temp
reader
writer
__iter__() → collections.abc.Iterator[Any]
close() → None
class dissect.target.helpers.cache.Cache(func: collections.abc.Callable, no_cache: bool = False, cls: type | None = None)
func
no_cache = False
fname = 'Uninferable.Uninferable'
wrapper = None
open_reader(path: pathlib.Path, output: str) → flow.record.adapter.stream.StreamReader | LineReader | None
open_writer(path: pathlib.Path, output: str) → flow.record.adapter.stream.StreamWriter | LineWriter | None
cache_path(target: dissect.target.target.Target, key: tuple) → pathlib.Path | None
call(*args, **kwargs) → Any
dissect.target.helpers.cache.wrap(func: collections.abc.Callable, no_cache: bool = False, cls: type | None = None) → collections.abc.Callable