优化内存缓存

This commit is contained in:
GoEdgeLab
2021-06-11 14:53:51 +08:00
parent 327b61dfe4
commit ab3d624bb8
4 changed files with 151 additions and 32 deletions

View File

@@ -54,7 +54,7 @@ func (this *MemoryStorage) Init() error {
})
if this.purgeDuration <= 0 {
this.purgeDuration = 30 * time.Second
this.purgeDuration = 10 * time.Second
}
// 启动定时清理任务