From 8664d1181da2f4360cc0da056d22a5dbd09e723e Mon Sep 17 00:00:00 2001 From: xing Date: Fri, 3 Feb 2023 22:43:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cache/memorymapcache.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cache/memorymapcache.go b/cache/memorymapcache.go index a2de458..9285146 100644 --- a/cache/memorymapcache.go +++ b/cache/memorymapcache.go @@ -82,7 +82,7 @@ func (m *MemoryMapCache[K, V]) Ver(_ context.Context, key K) int { } func (m *MemoryMapCache[K, V]) Flush(context.Context) { - m.Map = safety.NewMap[K, mapVal[V]]() + m.Map.Flush() } func (m *MemoryMapCache[K, V]) Delete(_ context.Context, key K) {