package db

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

func NewRedisClient(bus *comm.NatsBus) *redis.Client {
	// client, err := bus.NewRedisFromConfig("3dshow-redis")
	client, err := bus.NewRedisFromConfigDev("3dshow-redis")
	if err != nil {
		return nil
	}
	return client
}
