优化
This commit is contained in:
parent
4596f4541b
commit
8664d1181d
2
cache/memorymapcache.go
vendored
2
cache/memorymapcache.go
vendored
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user