Skip to main content

Module gc

Module gc 

Source
Expand description

Garbage Collection

LRU-based cleanup for local cache and optionally Nix store closures.

Structs§

GCConfig
Garbage collector configuration
GCStats
Statistics from garbage collection run
GarbageCollector
Garbage collector for CI cache

Enums§

GCError
Errors for garbage collection

Constants§

DEFAULT_MAX_AGE_DAYS
Default max age for cache entries (30 days)
DEFAULT_MAX_SIZE_BYTES
Default max cache size (10 GB)

Functions§

preview_gc
Run GC in dry-run mode to see what would be deleted
run_gc
Convenience function to run GC with default settings