Merge branch 'v5' of github.com:go-redis/redis into v5

This commit is contained in:
Vladimir Mihailenco 2016-12-21 13:01:53 +02:00
commit 754e4ed906
1 changed files with 4 additions and 4 deletions

View File

@ -109,8 +109,8 @@ type Cmdable interface {
HLen(key string) *IntCmd HLen(key string) *IntCmd
HMGet(key string, fields ...string) *SliceCmd HMGet(key string, fields ...string) *SliceCmd
HMSet(key string, fields map[string]string) *StatusCmd HMSet(key string, fields map[string]string) *StatusCmd
HSet(key, field, value string) *BoolCmd HSet(key, field string, value interface{}) *BoolCmd
HSetNX(key, field, value string) *BoolCmd HSetNX(key, field string, value interface{}) *BoolCmd
HVals(key string) *StringSliceCmd HVals(key string) *StringSliceCmd
BLPop(timeout time.Duration, keys ...string) *StringSliceCmd BLPop(timeout time.Duration, keys ...string) *StringSliceCmd
BRPop(timeout time.Duration, keys ...string) *StringSliceCmd BRPop(timeout time.Duration, keys ...string) *StringSliceCmd
@ -892,13 +892,13 @@ func (c *cmdable) HMSet(key string, fields map[string]string) *StatusCmd {
return cmd 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) cmd := NewBoolCmd("hset", key, field, value)
c.process(cmd) c.process(cmd)
return 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) cmd := NewBoolCmd("hsetnx", key, field, value)
c.process(cmd) c.process(cmd)
return cmd return cmd