From b902746d7bb74f3599f0d087b30730f508721ad8 Mon Sep 17 00:00:00 2001 From: Vladimir Mihailenco Date: Thu, 16 May 2019 16:48:41 +0300 Subject: [PATCH] DB is int --- commands.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/commands.go b/commands.go index ceee7d55..ffba8fd0 100644 --- a/commands.go +++ b/commands.go @@ -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