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.

17 lines
197 B

  1. package redisrpc
  2. import (
  3. "testing"
  4. // "time"
  5. )
  6. func Test_SetExpire(t *testing.T) {
  7. c, err := Set("test", "33")
  8. t.Log(c)
  9. t.Log(err)
  10. c, err = SetExpire("test", 30)
  11. t.Log(c)
  12. t.Log(err)
  13. }