优化缓存策略--“清理“功能

This commit is contained in:
GoEdgeLab
2023-08-13 19:22:48 +08:00
parent c21214d25c
commit 87ef0b0418
7 changed files with 85 additions and 31 deletions

View File

@@ -1,4 +1,15 @@
Tea.context(function () {
this.reason = 0
this.REASON_NEW_PIE = 0
this.REASON_ISSUE_REPORT = 1
this.REASON_BATCH_DELETE = 2
this.REASON_MAINTAINS = 3
this.isReasonable = function () {
return this.reason == this.REASON_ISSUE_REPORT || this.reason == this.REASON_BATCH_DELETE || this.reason == this.REASON_MAINTAINS
}
if (this.clusterId == null) {
if (this.clusters.length > 0) {
this.clusterId = this.clusters[0].id