]> git.saurik.com Git - redis.git/commitdiff
Fixed command table for SETEX and PSETEX causing the expire time to be hashed by...
authorantirez <antirez@gmail.com>
Tue, 22 Nov 2011 09:16:15 +0000 (10:16 +0100)
committerantirez <antirez@gmail.com>
Tue, 22 Nov 2011 09:16:15 +0000 (10:16 +0100)
src/redis.c

index ef0c2fecf731dfe70593ff15503da1958f51eb05..7e324aa15151ef964b55d336f4062691045e24ec 100644 (file)
@@ -112,8 +112,8 @@ struct redisCommand redisCommandTable[] = {
     {"get",getCommand,2,"r",0,NULL,1,1,1,0,0},
     {"set",setCommand,3,"wm",0,noPreloadGetKeys,1,1,1,0,0},
     {"setnx",setnxCommand,3,"wm",0,noPreloadGetKeys,1,1,1,0,0},
-    {"setex",setexCommand,4,"wm",0,noPreloadGetKeys,2,2,1,0,0},
-    {"psetex",psetexCommand,4,"wm",0,noPreloadGetKeys,2,2,1,0,0},
+    {"setex",setexCommand,4,"wm",0,noPreloadGetKeys,1,1,1,0,0},
+    {"psetex",psetexCommand,4,"wm",0,noPreloadGetKeys,1,1,1,0,0},
     {"append",appendCommand,3,"wm",0,NULL,1,1,1,0,0},
     {"strlen",strlenCommand,2,"r",0,NULL,1,1,1,0,0},
     {"del",delCommand,-2,"w",0,noPreloadGetKeys,1,-1,1,0,0},