diff --git a/pkg/serverconfigs/http_cache_storage_file.go b/pkg/serverconfigs/http_cache_storage_file.go index d744b1e..f5837a5 100644 --- a/pkg/serverconfigs/http_cache_storage_file.go +++ b/pkg/serverconfigs/http_cache_storage_file.go @@ -9,9 +9,10 @@ type CacheDir struct { // HTTPFileCacheStorage 文件缓存存储策略 type HTTPFileCacheStorage struct { - Dir string `yaml:"dir" json:"dir"` // 目录 - SubDirs []*CacheDir `yaml:"cacheDir" json:"subDirs"` // 子目录 - MemoryPolicy *HTTPCachePolicy `yaml:"memoryPolicy" json:"memoryPolicy"` // 内存二级缓存 + Dir string `yaml:"dir" json:"dir"` // 目录 + MinFreeSize *shared.SizeCapacity `yaml:"minFreeSize" json:"minFreeSize"` // 最小剩余空间 + SubDirs []*CacheDir `yaml:"cacheDir" json:"subDirs"` // 子目录 + MemoryPolicy *HTTPCachePolicy `yaml:"memoryPolicy" json:"memoryPolicy"` // 内存二级缓存 OpenFileCache *OpenFileCacheConfig `yaml:"openFileCache" json:"openFileCache"` // open file cache配置 EnableSendfile bool `yaml:"enableSendFile" json:"enableSendfile"` // 是否启用Sendfile