初始化文件缓存选项时同时也初始化内存策略

This commit is contained in:
刘祥超
2022-03-15 21:34:12 +08:00
parent b7dfd4390a
commit 6bf49e4532

View File

@@ -15,5 +15,13 @@ func (this *HTTPFileCacheStorage) Init() error {
return err
}
}
if this.MemoryPolicy != nil {
err := this.MemoryPolicy.Init()
if err != nil {
return err
}
}
return nil
}