From b7704886dbb4a8ccd8c0ca6133291b111b8de6c4 Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Sun, 6 Aug 2023 18:07:33 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=93=E5=AD=98=E7=AD=96=E7=95=A5=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E2=80=9C=E7=BC=93=E5=AD=98=E7=A3=81=E7=9B=98=E6=9C=80?= =?UTF-8?q?=E5=B0=8F=E7=A9=BA=E4=BD=99=E7=A9=BA=E9=97=B4=E2=80=9D=E9=80=89?= =?UTF-8?q?=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/serverconfigs/http_cache_storage_file.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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