# granite_storage.gc

class granite_storage.gc.GarbageCollectionReport(scanned: 'int' = 0, referenced: 'int' = 0, orphaned: 'int' = 0, deleted: 'int' = 0)

  Bases: `object`

  __init__(scanned: int = 0, referenced: int = 0, orphaned: int = 0, deleted: int = 0) → None
  deleted: int = 0
  orphaned: int = 0
  referenced: int = 0
  scanned: int = 0

class granite_storage.gc.StorageGarbageCollector(manager: StorageManager, iter_references: Callable[[], Iterable[StoredObjectRef | None]])

  Bases: `object`

  __init__(manager: StorageManager, iter_references: Callable[[], Iterable[StoredObjectRef | None]])
  collect(*, storage_key: str, dry_run: bool = True) → GarbageCollectionReport