SSCAN implemented.

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

View File

@ -906,3 +906,11 @@ void sdiffCommand(redisClient *c) {
void sdiffstoreCommand(redisClient *c) {
sunionDiffGenericCommand(c,c->argv+2,c->argc-2,c->argv[1],REDIS_OP_DIFF);
}
void sscanCommand(redisClient *c) {
robj *set;
if ((set = lookupKeyReadOrReply(c,c->argv[1],shared.emptyscan)) == NULL ||
checkType(c,set,REDIS_SET)) return;
scanGenericCommand(c,set);
}