This commit is contained in:
xing 2023-10-28 18:40:21 +08:00
parent cd4787991d
commit 936d033547

1
cache/map.go vendored
View File

@ -168,6 +168,7 @@ func (m *MapCache[K, V]) GetCacheBatch(c context.Context, key []K, timeout time.
v, ok := r[k]
if ok {
res[i] = v
m.Set(c, k, v)
} else {
v, ok = m.Get(c, k)
if ok {