From 8c668ec7badf6f39209dd021860479a646dc0f7b Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Sat, 12 Mar 2022 20:01:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=86=85=E5=AD=98=E7=BC=93=E5=AD=98=E5=88=B7?= =?UTF-8?q?=E5=88=B0=E7=A3=81=E7=9B=98=E5=90=8E=E8=87=AA=E5=8A=A8=E4=BB=8E?= =?UTF-8?q?=E5=86=85=E5=AD=98=E4=B8=AD=E5=88=A0=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/caches/storage_memory.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/caches/storage_memory.go b/internal/caches/storage_memory.go index f322d6c..beb3ae2 100644 --- a/internal/caches/storage_memory.go +++ b/internal/caches/storage_memory.go @@ -446,6 +446,9 @@ func (this *MemoryStorage) flushItem(key string) { BodySize: writer.BodySize(), }) + // 从内存中移除 + _ = this.Delete(key) + return }