Datamonger

datamonger.CacheCleanResult

Datamonger for Python · python · 0.4.0

CacheCleanResult(
    location: pathlib.Path,
    removed: tuple[datamonger.CacheEntry, ...],
    skipped: tuple[datamonger.CacheEntry, ...]
)

The entries removed or skipped by one manual cache eviction.

location

location: pathlib.Path = dataclasses.field(init=True)

Cache root from which matching objects were selected for eviction.

removed

removed: tuple[datamonger.CacheEntry, ...] = dataclasses.field(init=True)

Entries actually deleted after acquiring their exclusive cache leases.

skipped

skipped: tuple[datamonger.CacheEntry, ...] = dataclasses.field(init=True)

Matching entries retained because another operation held an active lease.

bytes_removed

bytes_removed(self) -> int

Return the number of cached bytes removed.