|
|
@ -31,7 +31,7 @@ func HGetString(key, field string, url ...string) (string, error) { |
|
|
|
} |
|
|
|
|
|
|
|
//设置
|
|
|
|
func HSet(key, field, value string, url ...string) (uint64, error) { |
|
|
|
func HSet(key, field, value string, url ...string) (int64, error) { |
|
|
|
|
|
|
|
conn, _, err := Conn(url...) |
|
|
|
|
|
|
@ -54,7 +54,7 @@ func HSet(key, field, value string, url ...string) (uint64, error) { |
|
|
|
} |
|
|
|
|
|
|
|
//删除
|
|
|
|
func HDel(key string, field string, url ...string) (uint64, error) { |
|
|
|
func HDel(key string, field string, url ...string) (int64, error) { |
|
|
|
|
|
|
|
conn, _, err := Conn(url...) |
|
|
|
|
|
|
|