ZSCAN implemented.

This commit is contained in:
antirez
2013-10-28 11:36:42 +01:00
parent 1cc7e646af
commit 35816a2e4d
3 changed files with 10 additions and 0 deletions

View File

@ -2204,3 +2204,11 @@ void zrankCommand(redisClient *c) {
void zrevrankCommand(redisClient *c) {
zrankGenericCommand(c, 1);
}
void zscanCommand(redisClient *c) {
robj *o;
if ((o= lookupKeyReadOrReply(c,c->argv[1],shared.emptyscan)) == NULL ||
checkType(c,o,REDIS_ZSET)) return;
scanGenericCommand(c,o);
}