|
|
@ -38,7 +38,7 @@ const (
|
|
|
|
func NewConversationRedis(rdb redis.UniversalClient, localCache *config.LocalCache, opts *rockscache.Options, db database.Conversation) cache.ConversationCache {
|
|
|
|
func NewConversationRedis(rdb redis.UniversalClient, localCache *config.LocalCache, opts *rockscache.Options, db database.Conversation) cache.ConversationCache {
|
|
|
|
batchHandler := NewBatchDeleterRedis(rdb, opts, []string{localCache.Conversation.Topic})
|
|
|
|
batchHandler := NewBatchDeleterRedis(rdb, opts, []string{localCache.Conversation.Topic})
|
|
|
|
c := localCache.Conversation
|
|
|
|
c := localCache.Conversation
|
|
|
|
log.ZDebug(context.Background(), "black local cache init", "Topic", c.Topic, "SlotNum", c.SlotNum, "SlotSize", c.SlotSize, "enable", c.Enable())
|
|
|
|
log.ZDebug(context.Background(), "conversation local cache init", "Topic", c.Topic, "SlotNum", c.SlotNum, "SlotSize", c.SlotSize, "enable", c.Enable())
|
|
|
|
return &ConversationRedisCache{
|
|
|
|
return &ConversationRedisCache{
|
|
|
|
BatchDeleter: batchHandler,
|
|
|
|
BatchDeleter: batchHandler,
|
|
|
|
rcClient: rockscache.NewClient(rdb, *opts),
|
|
|
|
rcClient: rockscache.NewClient(rdb, *opts),
|
|
|
|