From fa185a564fd76981830e4ad8ecdbd1dd20e302aa Mon Sep 17 00:00:00 2001 From: Vladimir Mihailenco Date: Sat, 11 Jul 2015 12:10:41 +0300 Subject: [PATCH] Use time.Duration in Restore. --- commands.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands.go b/commands.go index 56167d50..05de2f0a 100644 --- a/commands.go +++ b/commands.go @@ -238,11 +238,11 @@ func (c *commandable) RenameNX(key, newkey string) *BoolCmd { return cmd } -func (c *commandable) Restore(key string, ttl int64, value string) *StatusCmd { +func (c *commandable) Restore(key string, ttl time.Duration, value string) *StatusCmd { cmd := NewStatusCmd( "RESTORE", key, - formatInt(ttl), + formatMs(ttl), value, ) c.Process(cmd)