package redis import ( // "strconv" "testing" // "tgo/helper" ) func Test_GetExpire(t *testing.T) { RedisPassword = "123456" RedisInit("127.0.0.1:6379", RedisPassword) Set("test1", "sss") ret3, err := SetExpire("test1", 10) t.Log(ret3) t.Log(err) ret4, err := GetExpire("test1") t.Log(ret4) t.Log(err) }