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.

41 lines
654 B

package redis
import (
// "strconv"
"testing"
// "tgo/helper"
)
func Test_HVals(t *testing.T) {
ret3, err := HVals("sites")
t.Log(ret3)
t.Log(err)
ret4, err := HKeys("sites")
t.Log(ret4)
t.Log(err)
}
func Test_HGetAllItem(t *testing.T) {
RedisPassword = "123456"
ret3, err := HGetAllItem("60007_config")
t.Log(ret3)
t.Log(err)
}
func Test_HMGet(t *testing.T) {
RedisPassword = "123456"
ret3, err := HMGetString("60007_config", "wx_mp_appsecret", "wx_mp_appid", "withdrawal_rate")
t.Log(ret3)
t.Log(err)
}
func Test_HGetAll(t *testing.T) {
RedisPassword = "123456"
ret3, err := HGetAll("60007_user")
t.Log(ret3)
t.Log(err)
}