redis操作
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
323 B

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)
}