handled DEL command as a special optimized case for disk store

This commit is contained in:
antirez
2010-12-30 19:16:59 +01:00
parent 8d51fb6a80
commit 3122229228
4 changed files with 34 additions and 5 deletions

View File

@ -262,6 +262,10 @@ int dsDel(redisDb *db, robj *key) {
}
int dsExists(redisDb *db, robj *key) {
char buf[1024];
dsKeyToPath(db,buf,key);
return access(buf,R_OK) == 0;
}
int dsFlushDb(int dbid) {