内存缓存刷到磁盘后自动从内存中删除

This commit is contained in:
刘祥超
2022-03-12 20:01:28 +08:00
parent 8b22d00ce4
commit 34fae1c2a3

View File

@@ -446,6 +446,9 @@ func (this *MemoryStorage) flushItem(key string) {
BodySize: writer.BodySize(),
})
// 从内存中移除
_ = this.Delete(key)
return
}