redis rpc服务, 提供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.
 

30 lines
358 B

package redisrpc
import (
"testing"
// "time"
)
// func Test_Get(t *testing.T) {
// reply, err := GetString("siteListCache")
// t.Log(reply)
// t.Log(err)
// }
func Test_Set(t *testing.T) {
c, err := Set("test", "1111", 7200)
t.Log(c)
t.Log(err)
}
// func Test_Del(t *testing.T) {
// c, err := Del("test")
// t.Log(c)
// t.Log(err)
// }