diff --git a/src/cluster.c b/src/cluster.c index a0dd6519e3ef8958a1e22de3bbdddb9bc7b748c7..308d3bf7ae1f8bf0e42e32be176914dbb2a9c545 100644 --- a/src/cluster.c +++ b/src/cluster.c @@ -1577,7 +1577,7 @@ void restoreCommand(redisClient *c) { /* Create the key and set the TTL if any */ dbAdd(c->db,c->argv[1],obj); - if (ttl) setExpire(c->db,c->argv[1],time(NULL)+ttl); + if (ttl) setExpire(c->db,c->argv[1],mstime()+ttl); signalModifiedKey(c->db,c->argv[1]); addReply(c,shared.ok); server.dirty++;