缓存策略移除“容纳Key数量”选项

This commit is contained in:
刘祥超
2023-07-08 18:51:10 +08:00
parent 83f5166d76
commit 1c192050c7
4 changed files with 151 additions and 174 deletions

View File

@@ -13,7 +13,6 @@ type HTTPCachePolicy struct {
Name string `yaml:"name" json:"name"` // 名称
Description string `yaml:"description" json:"description"` // 描述
Capacity *shared.SizeCapacity `yaml:"capacity" json:"capacity"` // 最大内容容量
MaxKeys int64 `yaml:"maxKeys" json:"maxKeys"` // 最多Key值
MaxSize *shared.SizeCapacity `yaml:"maxSize" json:"maxSize"` // 单个缓存最大尺寸
Type CachePolicyStorageType `yaml:"type" json:"type"` // 类型
Options map[string]interface{} `yaml:"options" json:"options"` // 选项