fix: resolve deadlock in cache eviction and improve GetBatch implementation

This commit is contained in:
withchao
2025-12-12 15:37:36 +08:00
parent 79464bae17
commit dd5ff6f0e4
5 changed files with 135 additions and 23 deletions
+2 -7
View File
@@ -15,11 +15,10 @@
package localcache
import (
"strings"
"sync"
"github.com/openimsdk/open-im-server/v3/pkg/common/config"
"github.com/openimsdk/open-im-server/v3/pkg/common/storage/cache/cachekey"
"strings"
"sync"
)
var (
@@ -33,10 +32,6 @@ func InitLocalCache(localCache *config.LocalCache) {
Local config.CacheConfig
Keys []string
}{
{
Local: localCache.Auth,
Keys: []string{cachekey.UidPidToken},
},
{
Local: localCache.User,
Keys: []string{cachekey.UserInfoKey, cachekey.UserGlobalRecvMsgOptKey},