Use time.Duration in Restore.

This commit is contained in:
Vladimir Mihailenco 2015-07-11 12:10:41 +03:00
parent 39c9dc2665
commit fa185a564f
1 changed files with 2 additions and 2 deletions

View File

@ -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)