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.
 

28 lines
362 B

package redisrpc
import (
// "strconv"
"testing"
// "tgo/helper"
)
func Test_SAdd(t *testing.T) {
// reply, err := SAdd("test", "44")
reply, err := SIsmember("test", "44")
t.Log(reply)
t.Log(err)
reply, err = SRem("test", "44")
t.Log(reply)
t.Log(err)
}
func Test_SCard(t *testing.T){
res,err := SCard("test_article")
t.Log(res)
t.Log(err)
}