Browse Source

设置hset修改

master v0.1.13
guzeng 3 years ago
parent
commit
141b64d0d8
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      hash.go

+ 2
- 2
hash.go View File

@ -36,7 +36,7 @@ func HSet(key, field, value string, url ...string) (uint64, error) {
conn, _, err := Conn(url...)
if err != nil {
return "", err
return 0, err
}
defer conn.Close()
@ -47,7 +47,7 @@ func HSet(key, field, value string, url ...string) (uint64, error) {
err = conn.HSet(req, res)
if err != nil {
return "", err
return 0, err
}
return res.GetRet(), nil


Loading…
Cancel
Save