localcache

This commit is contained in:
withchao
2024-01-10 12:09:25 +08:00
parent 1ea5fe04f1
commit 28292be37d
2 changed files with 6 additions and 3 deletions
+2 -2
View File
@@ -57,8 +57,8 @@ func NewBlackCacheRedis(
rcClient := rockscache.NewClient(rdb, options)
mc := NewMetaCacheRedis(rcClient)
f := config.Config.LocalCache.Friend
log.ZDebug(context.Background(), "local cache init", "Topic", f.Topic, "SlotNum", f.SlotNum, "SlotSize", f.SlotSize)
mc.SetTopic(config.Config.LocalCache.Friend.Topic)
log.ZDebug(context.Background(), "black local cache init", "Topic", f.Topic, "SlotNum", f.SlotNum, "SlotSize", f.SlotSize)
mc.SetTopic(f.Topic)
mc.SetRawRedisClient(rdb)
return &BlackCacheRedis{
expireTime: blackExpireTime,