HSCAN implemented.

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

View File

@ -759,3 +759,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);
}