go_dreamfactory/sys/cache/user_test.go
2022-06-01 15:53:16 +08:00

20 lines
374 B
Go

package cache
import (
"testing"
"github.com/liwei1dao/lego/sys/redis"
)
var rds redis.IRedis
func TestMain(m *testing.M) {
redis.NewSys(redis.Redis_Cluster_Addr([]string{"10.0.0.9:9001", "10.0.0.9:9002", "10.0.0.9:9003", "10.0.1.45:9004", "10.0.1.45:9005", "10.0.1.45:9006"}),
redis.SetRedis_Cluster_Password(""))
defer m.Run()
}
func TestSet(t *testing.T) {
}