mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-11-03 12:20:27 +08:00
[用户平台][缓存]实现刷新和预热
This commit is contained in:
@@ -39,14 +39,23 @@ type StatCacheMessage struct {
|
||||
}
|
||||
|
||||
// 清除缓存
|
||||
|
||||
type CleanCacheMessage struct {
|
||||
CachePolicyJSON []byte `json:"cachePolicyJSON"`
|
||||
}
|
||||
|
||||
// 删除缓存
|
||||
type PurgeCacheMessageType = string
|
||||
|
||||
const (
|
||||
PurgeCacheMessageTypeFile PurgeCacheMessageType = "file"
|
||||
PurgeCacheMessageTypeDir PurgeCacheMessageType = "dir"
|
||||
)
|
||||
|
||||
type PurgeCacheMessage struct {
|
||||
CachePolicyJSON []byte `json:"cachePolicyJSON"`
|
||||
Keys []string `json:"keys"`
|
||||
CachePolicyJSON []byte `json:"cachePolicyJSON"`
|
||||
Keys []string `json:"keys"`
|
||||
Type PurgeCacheMessageType `json:"type"` // 清理类型
|
||||
}
|
||||
|
||||
// 预热缓存
|
||||
|
||||
Reference in New Issue
Block a user