package db

import (
	"github.com/go-redis/redis/v8"
	"infish.cn/comm"
)

// 从config-service中获取配置，创建
func NewConfigRedisClient(bus *comm.NatsBus) *redis.Client {
	redisCli, err := bus.NewRedisFromConfig("redis")
	if err != nil {
		panic(err)
	}
	return redisCli
}
