From 1bc54880cb7ef4e427564672c787f587de45b2c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=A5=A5=E8=B6=85?= Date: Tue, 16 Mar 2021 18:09:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BA=8C=E7=BA=A7=E7=BC=93?= =?UTF-8?q?=E5=AD=98=E7=BC=BA=E5=A4=B1=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/serverconfigs/http_cache_storage_file.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/serverconfigs/http_cache_storage_file.go b/pkg/serverconfigs/http_cache_storage_file.go index f16958c..227eb0b 100644 --- a/pkg/serverconfigs/http_cache_storage_file.go +++ b/pkg/serverconfigs/http_cache_storage_file.go @@ -1,7 +1,9 @@ package serverconfigs +// 文件缓存存储策略 type HTTPFileCacheStorage struct { - Dir string `yaml:"dir" json:"dir"` // 目录 + Dir string `yaml:"dir" json:"dir"` // 目录 + MemoryPolicy *HTTPCachePolicy `yaml:"memoryPolicy" json:"memoryPolicy"` // 内存二级缓存 } func (this *HTTPFileCacheStorage) Init() error {