This commit is contained in:
xing 2023-02-03 22:43:20 +08:00
parent 4596f4541b
commit 8664d1181d

View File

@ -82,7 +82,7 @@ func (m *MemoryMapCache[K, V]) Ver(_ context.Context, key K) int {
} }
func (m *MemoryMapCache[K, V]) Flush(context.Context) { 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) { func (m *MemoryMapCache[K, V]) Delete(_ context.Context, key K) {