DB is int

This commit is contained in:
Vladimir Mihailenco 2019-05-16 16:48:41 +03:00
parent 685d8922de
commit b902746d7b
1 changed files with 4 additions and 4 deletions

View File

@ -67,8 +67,8 @@ type Cmdable interface {
Expire(key string, expiration time.Duration) *BoolCmd
ExpireAt(key string, tm time.Time) *BoolCmd
Keys(pattern string) *StringSliceCmd
Migrate(host, port, key string, db int64, timeout time.Duration) *StatusCmd
Move(key string, db int64) *BoolCmd
Migrate(host, port, key string, db int, timeout time.Duration) *StatusCmd
Move(key string, db int) *BoolCmd
ObjectRefCount(key string) *IntCmd
ObjectEncoding(key string) *StringCmd
ObjectIdleTime(key string) *DurationCmd
@ -431,7 +431,7 @@ func (c *cmdable) Keys(pattern string) *StringSliceCmd {
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(
"migrate",
host,
@ -445,7 +445,7 @@ func (c *cmdable) Migrate(host, port, key string, db int64, timeout time.Duratio
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)
c.process(cmd)
return cmd