forked from mirror/redis
commands.go: fix input types.
This commit is contained in:
parent
12edede26a
commit
cbcdd97ca2
12
commands.go
12
commands.go
|
@ -779,7 +779,7 @@ func (c *commandable) LPush(key string, values ...string) *IntCmd {
|
||||||
return cmd
|
return cmd
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *commandable) LPushX(key, value string) *IntCmd {
|
func (c *commandable) LPushX(key, value interface{}) *IntCmd {
|
||||||
cmd := NewIntCmd("LPUSHX", key, value)
|
cmd := NewIntCmd("LPUSHX", key, value)
|
||||||
c.Process(cmd)
|
c.Process(cmd)
|
||||||
return cmd
|
return cmd
|
||||||
|
@ -796,13 +796,13 @@ func (c *commandable) LRange(key string, start, stop int64) *StringSliceCmd {
|
||||||
return cmd
|
return cmd
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *commandable) LRem(key string, count int64, value string) *IntCmd {
|
func (c *commandable) LRem(key string, count int64, value interface{}) *IntCmd {
|
||||||
cmd := NewIntCmd("LREM", key, count, value)
|
cmd := NewIntCmd("LREM", key, count, value)
|
||||||
c.Process(cmd)
|
c.Process(cmd)
|
||||||
return cmd
|
return cmd
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *commandable) LSet(key string, index int64, value string) *StatusCmd {
|
func (c *commandable) LSet(key string, index int64, value interface{}) *StatusCmd {
|
||||||
cmd := NewStatusCmd("LSET", key, index, value)
|
cmd := NewStatusCmd("LSET", key, index, value)
|
||||||
c.Process(cmd)
|
c.Process(cmd)
|
||||||
return cmd
|
return cmd
|
||||||
|
@ -843,7 +843,7 @@ func (c *commandable) RPush(key string, values ...string) *IntCmd {
|
||||||
return cmd
|
return cmd
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *commandable) RPushX(key string, value string) *IntCmd {
|
func (c *commandable) RPushX(key string, value interface{}) *IntCmd {
|
||||||
cmd := NewIntCmd("RPUSHX", key, value)
|
cmd := NewIntCmd("RPUSHX", key, value)
|
||||||
c.Process(cmd)
|
c.Process(cmd)
|
||||||
return cmd
|
return cmd
|
||||||
|
@ -915,7 +915,7 @@ func (c *commandable) SInterStore(destination string, keys ...string) *IntCmd {
|
||||||
return cmd
|
return cmd
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *commandable) SIsMember(key, member string) *BoolCmd {
|
func (c *commandable) SIsMember(key string, member interface{}) *BoolCmd {
|
||||||
cmd := NewBoolCmd("SISMEMBER", key, member)
|
cmd := NewBoolCmd("SISMEMBER", key, member)
|
||||||
c.Process(cmd)
|
c.Process(cmd)
|
||||||
return cmd
|
return cmd
|
||||||
|
@ -927,7 +927,7 @@ func (c *commandable) SMembers(key string) *StringSliceCmd {
|
||||||
return cmd
|
return cmd
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *commandable) SMove(source, destination, member string) *BoolCmd {
|
func (c *commandable) SMove(source, destination string, member interface{}) *BoolCmd {
|
||||||
cmd := NewBoolCmd("SMOVE", source, destination, member)
|
cmd := NewBoolCmd("SMOVE", source, destination, member)
|
||||||
c.Process(cmd)
|
c.Process(cmd)
|
||||||
return cmd
|
return cmd
|
||||||
|
|
Loading…
Reference in New Issue