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

  1. package redisrpc
  2. import (
  3. "testing"
  4. // "time"
  5. )
  6. // func Test_Get(t *testing.T) {
  7. // reply, err := GetString("siteListCache")
  8. // t.Log(reply)
  9. // t.Log(err)
  10. // }
  11. func Test_Set(t *testing.T) {
  12. c, err := Set("test", "1111", 7200)
  13. t.Log(c)
  14. t.Log(err)
  15. }
  16. // func Test_Del(t *testing.T) {
  17. // c, err := Del("test")
  18. // t.Log(c)
  19. // t.Log(err)
  20. // }