mirror of
https://github.com/fluencelabs/redis
synced 2025-06-22 05:21:33 +00:00
don't load value from VM for EXISTS
This commit is contained in:
7
redis.c
7
redis.c
@ -4343,7 +4343,12 @@ static void delCommand(redisClient *c) {
|
||||
}
|
||||
|
||||
static void existsCommand(redisClient *c) {
|
||||
addReply(c,lookupKeyRead(c->db,c->argv[1]) ? shared.cone : shared.czero);
|
||||
expireIfNeeded(c->db,c->argv[1]);
|
||||
if (dictFind(c->db->dict,c->argv[1])) {
|
||||
addReply(c, shared.cone);
|
||||
} else {
|
||||
addReply(c, shared.czero);
|
||||
}
|
||||
}
|
||||
|
||||
static void selectCommand(redisClient *c) {
|
||||
|
Reference in New Issue
Block a user