HSCAN implemented.

This commit is contained in:
antirez
2013-10-28 11:32:34 +01:00
parent 24ecabc995
commit 1cc7e646af
4 changed files with 11 additions and 1 deletions

View File

@ -762,3 +762,11 @@ void hexistsCommand(redisClient *c) {
addReply(c, hashTypeExists(o,c->argv[2]) ? shared.cone : shared.czero);
}
void hscanCommand(redisClient *c) {
robj *o;
if ((o= lookupKeyReadOrReply(c,c->argv[1],shared.emptyscan)) == NULL ||
checkType(c,o,REDIS_HASH)) return;
scanGenericCommand(c,o);
}