package redis import ( "log" "testing" ) func TestInit(t *testing.T) { // regAddr := regexp.MustCompile("[0-9.a-zA-Z/]+:[0-9]+.*") // log.Println(regAddr.MatchString("fdfsd.uyuyds.ii:2203&dsds")) r1 := &GoRedis{} // r1.Init("other=127.0.0.1:2203|127.0.0.1:2204=0-14=1-10=400") // r1.Init("other=127.0.0.1:2203=0-1=1-10=400") // r1.Init("other=127.0.0.1:2203=1=1") r1.Init("192.168.3.207:6379=1-4=2=600") r1.Put(`ddd1`, "fff") log.Println(hashCode("aaaaOppkdlkj9i9)Jkjfdksfhjhajkhdsa8d98uiuhjkdsnjknbaaa4554645654645ajjjhh12uih")) }