mirror of https://github.com/go-redis/redis.git
DB is int
This commit is contained in:
parent
685d8922de
commit
b902746d7b
|
@ -67,8 +67,8 @@ type Cmdable interface {
|
||||||
Expire(key string, expiration time.Duration) *BoolCmd
|
Expire(key string, expiration time.Duration) *BoolCmd
|
||||||
ExpireAt(key string, tm time.Time) *BoolCmd
|
ExpireAt(key string, tm time.Time) *BoolCmd
|
||||||
Keys(pattern string) *StringSliceCmd
|
Keys(pattern string) *StringSliceCmd
|
||||||
Migrate(host, port, key string, db int64, timeout time.Duration) *StatusCmd
|
Migrate(host, port, key string, db int, timeout time.Duration) *StatusCmd
|
||||||
Move(key string, db int64) *BoolCmd
|
Move(key string, db int) *BoolCmd
|
||||||
ObjectRefCount(key string) *IntCmd
|
ObjectRefCount(key string) *IntCmd
|
||||||
ObjectEncoding(key string) *StringCmd
|
ObjectEncoding(key string) *StringCmd
|
||||||
ObjectIdleTime(key string) *DurationCmd
|
ObjectIdleTime(key string) *DurationCmd
|
||||||
|
@ -431,7 +431,7 @@ func (c *cmdable) Keys(pattern string) *StringSliceCmd {
|
||||||
return cmd
|
return cmd
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *cmdable) Migrate(host, port, key string, db int64, timeout time.Duration) *StatusCmd {
|
func (c *cmdable) Migrate(host, port, key string, db int, timeout time.Duration) *StatusCmd {
|
||||||
cmd := NewStatusCmd(
|
cmd := NewStatusCmd(
|
||||||
"migrate",
|
"migrate",
|
||||||
host,
|
host,
|
||||||
|
@ -445,7 +445,7 @@ func (c *cmdable) Migrate(host, port, key string, db int64, timeout time.Duratio
|
||||||
return cmd
|
return cmd
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *cmdable) Move(key string, db int64) *BoolCmd {
|
func (c *cmdable) Move(key string, db int) *BoolCmd {
|
||||||
cmd := NewBoolCmd("move", key, db)
|
cmd := NewBoolCmd("move", key, db)
|
||||||
c.process(cmd)
|
c.process(cmd)
|
||||||
return cmd
|
return cmd
|
||||||
|
|
Loading…
Reference in New Issue