local cache

This commit is contained in:
withchao
2024-01-10 16:24:46 +08:00
parent 8ff8861603
commit 006e4a1e93
5 changed files with 10 additions and 16 deletions
-6
View File
@@ -16,7 +16,6 @@ package msg
import (
"context"
"github.com/openimsdk/open-im-server/v3/pkg/common/config"
"github.com/openimsdk/open-im-server/v3/pkg/rpccache"
"google.golang.org/grpc"
@@ -66,11 +65,6 @@ func (m *msgServer) execInterceptorHandler(ctx context.Context, req *msg.SendMsg
}
func Start(client discoveryregistry.SvcDiscoveryRegistry, server *grpc.Server) error {
config.Config.LocalCache.Friend.Topic = "friend"
config.Config.LocalCache.Friend.SlotNum = 500
config.Config.LocalCache.Friend.SlotSize = 20000
rdb, err := cache.NewRedis()
if err != nil {
return err