]> git.saurik.com Git - redis.git/blobdiff - src/t_string.c
Initial support for key expire times with millisecond resolution. RDB version is...
[redis.git] / src / t_string.c
index e0b9b263dc11e81939258555bd9248066b849660..aea588728976f36c10f33d7cf88248794ce32077 100644 (file)
@@ -30,7 +30,7 @@ void setGenericCommand(redisClient *c, int nx, robj *key, robj *val, robj *expir
     }
     setKey(c->db,key,val);
     server.dirty++;
-    if (expire) setExpire(c->db,key,time(NULL)+seconds);
+    if (expire) setExpire(c->db,key,(time(NULL)+seconds)*1000);
     addReply(c, nx ? shared.cone : shared.ok);
 }