From 39da5d1f2183eb6e7440bf742b558f974a5a4172 Mon Sep 17 00:00:00 2001 From: antirez Date: Tue, 22 Nov 2011 10:16:15 +0100 Subject: [PATCH 1/1] Fixed command table for SETEX and PSETEX causing the expire time to be hashed by Redis cluster instead of the key. --- src/redis.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/redis.c b/src/redis.c index ef0c2fec..7e324aa1 100644 --- a/src/redis.c +++ b/src/redis.c @@ -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}, -- 2.45.2