mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-11-11 01:50:26 +08:00
增加Sendfile相关选项
This commit is contained in:
@@ -6,6 +6,7 @@ type HTTPFileCacheStorage struct {
|
|||||||
MemoryPolicy *HTTPCachePolicy `yaml:"memoryPolicy" json:"memoryPolicy"` // 内存二级缓存
|
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 {
|
func (this *HTTPFileCacheStorage) Init() error {
|
||||||
|
|||||||
Reference in New Issue
Block a user