feat: add upstream and verbose flags to command line interface
All checks were successful
Release Tag / release (push) Successful in 13s

feat: add upstream support allowing to chain cache servers if needed
fix: tweaked garbage collection to be better
This commit is contained in:
2025-01-23 11:14:39 -06:00
parent 931c43d7a8
commit e24af47697
11 changed files with 310 additions and 103 deletions

View File

@@ -12,9 +12,9 @@ type FileInfo struct {
ATime time.Time
}
func NewFileInfo(name string, size int64, modTime time.Time) *FileInfo {
func NewFileInfo(key string, size int64, modTime time.Time) *FileInfo {
return &FileInfo{
name: name,
name: key,
size: size,
MTime: modTime,
ATime: time.Now(),