Browse Source

设置KEY增加过期时间

master
guzeng 2 years ago
parent
commit
3b7154b929
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      string.go

+ 1
- 1
string.go View File

@ -39,7 +39,7 @@ func Set(key, value string, ttl uint64, url ...string) (uint64, error) {
}
defer conn.Close()
req := &SetRequest{proto.String(key), proto.String(value),proto.Uint64(ttl) nil}
req := &SetRequest{proto.String(key), proto.String(value), proto.Uint64(ttl), nil}
res := &SetResponse{}


Loading…
Cancel
Save