From 33c08b39164eb669313f4871ce1b16a8e4cb2e5c Mon Sep 17 00:00:00 2001 From: antirez Date: Fri, 5 Jun 2009 16:07:22 +0200 Subject: [PATCH] LREM now returns :0 for non existing keys --- redis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redis.c b/redis.c index 28e1c64f..8b3f3be2 100644 --- a/redis.c +++ b/redis.c @@ -2860,7 +2860,7 @@ static void lremCommand(redisClient *c) { o = lookupKeyWrite(c->db,c->argv[1]); if (o == NULL) { - addReply(c,shared.nokeyerr); + addReply(c,shared.czero); } else { if (o->type != REDIS_LIST) { addReply(c,shared.wrongtypeerr);