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 {