Skip to content

Commit

Permalink
Merge branch 'v5' of github.com:go-redis/redis into v5
Browse files Browse the repository at this point in the history
  • Loading branch information
vmihailenco committed Dec 21, 2016
2 parents c9f896d + 110b84a commit 754e4ed
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ type Cmdable interface {
HLen(key string) *IntCmd
HMGet(key string, fields ...string) *SliceCmd
HMSet(key string, fields map[string]string) *StatusCmd
HSet(key, field, value string) *BoolCmd
HSetNX(key, field, value string) *BoolCmd
HSet(key, field string, value interface{}) *BoolCmd
HSetNX(key, field string, value interface{}) *BoolCmd
HVals(key string) *StringSliceCmd
BLPop(timeout time.Duration, keys ...string) *StringSliceCmd
BRPop(timeout time.Duration, keys ...string) *StringSliceCmd
Expand Down Expand Up @@ -892,13 +892,13 @@ func (c *cmdable) HMSet(key string, fields map[string]string) *StatusCmd {
return cmd
}

func (c *cmdable) HSet(key, field, value string) *BoolCmd {
func (c *cmdable) HSet(key, field string, value interface{}) *BoolCmd {
cmd := NewBoolCmd("hset", key, field, value)
c.process(cmd)
return cmd
}

func (c *cmdable) HSetNX(key, field, value string) *BoolCmd {
func (c *cmdable) HSetNX(key, field string, value interface{}) *BoolCmd {
cmd := NewBoolCmd("hsetnx", key, field, value)
c.process(cmd)
return cmd
Expand Down

0 comments on commit 754e4ed

Please sign in to comment.