package site import ( "testing" ) func Test_GetSiteFromRedis(t *testing.T) { host := "dev.tetele.net" ret, err := GetSiteFromRedis(host) t.Log(ret) t.Log(err) // site := map[string]string{"database": "dev_testing", "site_id": "2000"} // err = SetToRedis(host, site) // t.Log(err) ret2, err := GetAll() t.Log(ret2) t.Log(len(ret2)) }