http请求支持预热接口数据并缓存
This commit is contained in:
@ -14,6 +14,7 @@ package define
|
||||
// Date : 18:40 2024/10/9
|
||||
type CachePreHeatConfig struct {
|
||||
Enable bool `json:"enable"` // 缓存预热是否可用
|
||||
MinPercent int `json:"min_percent"` // 最小百分比, 剩余有效期低于此百分比进行预热
|
||||
MinPercent int64 `json:"min_percent"` // 最小百分比, 剩余有效期低于此百分比进行预热
|
||||
MinTTL int64 `json:"min_ttl"` // 最小剩余生命周期, 低于此百分比进行预热
|
||||
Force bool `json:"force"` // 启用预热的情况下, 强制预热, 会忽略 MinPercent / MinTTL 的配置
|
||||
}
|
||||
|
Reference in New Issue
Block a user