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

@@ -73,9 +73,8 @@ func (m *MemoryFS) Set(key string, src []byte) error {
int64(len(src)),
time.Now(),
),
data: make([]byte, len(src)),
data: src,
}
copy(m.files[key].data, src)
return nil
}