mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-11-03 12:20:27 +08:00
缓存策略增加“缓存磁盘最小空余空间”选项
This commit is contained in:
@@ -9,9 +9,10 @@ type CacheDir struct {
|
|||||||
|
|
||||||
// HTTPFileCacheStorage 文件缓存存储策略
|
// HTTPFileCacheStorage 文件缓存存储策略
|
||||||
type HTTPFileCacheStorage struct {
|
type HTTPFileCacheStorage struct {
|
||||||
Dir string `yaml:"dir" json:"dir"` // 目录
|
Dir string `yaml:"dir" json:"dir"` // 目录
|
||||||
SubDirs []*CacheDir `yaml:"cacheDir" json:"subDirs"` // 子目录
|
MinFreeSize *shared.SizeCapacity `yaml:"minFreeSize" json:"minFreeSize"` // 最小剩余空间
|
||||||
MemoryPolicy *HTTPCachePolicy `yaml:"memoryPolicy" json:"memoryPolicy"` // 内存二级缓存
|
SubDirs []*CacheDir `yaml:"cacheDir" json:"subDirs"` // 子目录
|
||||||
|
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
|
EnableSendfile bool `yaml:"enableSendFile" json:"enableSendfile"` // 是否启用Sendfile
|
||||||
|
|||||||
Reference in New Issue
Block a user