增加刷新、预热缓存任务管理

This commit is contained in:
GoEdgeLab
2022-06-05 17:15:02 +08:00
parent 254469857b
commit bb7c8cf71d
10 changed files with 279 additions and 267 deletions

View File

@@ -214,3 +214,15 @@ func (this *Manager) FindAllCachePaths() []string {
}
return result
}
// FindAllStorages 读取所有缓存存储
func (this *Manager) FindAllStorages() []StorageInterface {
this.locker.Lock()
defer this.locker.Unlock()
var storages = []StorageInterface{}
for _, storage := range this.storageMap {
storages = append(storages, storage)
}
return storages
}