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.

21 lines
270 B

  1. package redisrpc
  2. import (
  3. // "strconv"
  4. "testing"
  5. // "tgo/helper"
  6. )
  7. func Test_SAdd(t *testing.T) {
  8. // reply, err := SAdd("test", "44")
  9. reply, err := SIsmember("test", "44")
  10. t.Log(reply)
  11. t.Log(err)
  12. reply, err = SRem("test", "44")
  13. t.Log(reply)
  14. t.Log(err)
  15. }