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