}
int dbExists(redisDb *db, robj *key) {
- return dictFind(db->dict,key->ptr) != NULL;
+ if (dictFind(db->dict,key->ptr) != NULL)
+ return 1;
+ if (recover(db, key) != NULL)
+ return 1;
+ return 0;
}
/* Return a random key, in form of a Redis object.