增加Sendfile相关选项

This commit is contained in:
GoEdgeLab
2022-04-04 19:45:26 +08:00
parent 80eda969ea
commit 9ed41c3246

View File

@@ -5,7 +5,8 @@ type HTTPFileCacheStorage struct {
Dir string `yaml:"dir" json:"dir"` // 目录
MemoryPolicy *HTTPCachePolicy `yaml:"memoryPolicy" json:"memoryPolicy"` // 内存二级缓存
OpenFileCache *OpenFileCacheConfig `yaml:"openFileCache" json:"openFileCache"` // open file cache配置
OpenFileCache *OpenFileCacheConfig `yaml:"openFileCache" json:"openFileCache"` // open file cache配置
EnableSendfile bool `yaml:"enableSendFile" json:"enableSendfile"` // 是否启用Sendfile
}
func (this *HTTPFileCacheStorage) Init() error {