cache clean implemented

This commit is contained in:
2026-05-29 03:46:47 -06:00
parent a9de607743
commit 248c1370d7
9 changed files with 48 additions and 17 deletions
+1 -1
View File
@@ -53,7 +53,7 @@ func main() {
os.Exit(1)
}
c, err := cache.NewCache(cfg.CacheRoot, cfg.MirrorURLs, cfg.MirroredRepos)
c, err := cache.NewCache(cfg.CacheRoot, cfg.MirrorURLs, cfg.MirroredRepos, cfg.MaxCacheSize, cfg.MaxCacheAge)
if err != nil {
slog.Error("failed to create cache", "err", err)
os.Exit(1)