added keyspace_hits and keyspace_misses fields in INFO output

This commit is contained in:
antirez
2010-10-15 12:19:21 +02:00
parent a36879293d
commit 53eeeaff08
3 changed files with 15 additions and 5 deletions

View File

@ -34,8 +34,10 @@ robj *lookupKey(redisDb *db, robj *key) {
if (notify) handleClientsBlockedOnSwappedKey(db,key);
}
}
server.stat_keyspace_hits++;
return val;
} else {
server.stat_keyspace_misses++;
return NULL;
}
}