增加stale cache配置

This commit is contained in:
GoEdgeLab
2021-12-16 17:28:02 +08:00
parent 516627e2a1
commit 97f58b7ee7
2 changed files with 17 additions and 0 deletions

View File

@@ -16,6 +16,8 @@ type HTTPCacheConfig struct {
PurgeIsOn bool `yaml:"purgeIsOn" json:"purgeIsOn"` // 是否允许使用Purge方法清理
PurgeKey string `yaml:"purgeKey" json:"purgeKey"` // Purge时使用的X-Edge-Purge-Key
Stale *HTTPCacheStaleConfig `yaml:"stale" json:"stale"` // 陈旧缓存使用策略
CacheRefs []*HTTPCacheRef `yaml:"cacheRefs" json:"cacheRefs"` // 缓存配置
}