eclipse/lib/eclipse/cache.go

18 lines
357 B
Go
Raw Normal View History

2024-01-18 05:49:09 +00:00
// Copyright (C) 2024 Umorpha Systems
// SPDX-License-Identifier: AGPL-3.0-or-later
package eclipse
import (
"path/filepath"
"git.mothstuff.lol/lukeshu/eclipse/lib/gitcache"
)
func (cfg Config) GitCache() *gitcache.Cache {
return &gitcache.Cache{
Dir: filepath.Join(cfg.CacheDir, "gitcache.git"),
MinPeriod: cfg.GitCacheFor.Duration,
}
}