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

This commit is contained in:
GoEdgeLab
2022-03-15 21:34:12 +08:00
parent eb2bd57a92
commit 0a6f136c68

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
}