Add logs to cache hunter

This commit is contained in:
Deluan
2023-02-06 10:33:34 -05:00
parent a7f15facf9
commit bfaf4a3388
3 changed files with 12 additions and 3 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ func TestFileHaunterMaxSize(t *testing.T) {
}
defer os.RemoveAll(tempDir)
c, err := fscache.NewCacheWithHaunter(fs, fscache.NewLRUHaunterStrategy(cache.NewFileHaunter(0, 24, 400*time.Millisecond)))
c, err := fscache.NewCacheWithHaunter(fs, fscache.NewLRUHaunterStrategy(cache.NewFileHaunter("", 0, 24, 400*time.Millisecond)))
if err != nil {
t.Error(err.Error())
return