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] v, ok := r[k]
if ok { if ok {
res[i] = v res[i] = v
m.Set(c, k, v)
} else { } else {
v, ok = m.Get(c, k) v, ok = m.Get(c, k)
if ok { if ok {