def zadd(self, name, members, score=<NUM_LIT:1>, nx=False,<EOL>xx=False, ch=False, incr=False):
if nx:<EOL><INDENT>_args = ['<STR_LIT>']<EOL><DEDENT>elif xx:<EOL><INDENT>_args = ['<STR_LIT>']<EOL><DEDENT>else:<EOL><INDENT>_args = []<EOL><DEDENT>if ch:<EOL><INDENT>_args.append('<STR_LIT>')<EOL><DEDENT>if incr:<EOL><INDENT>_args.append('<STR_LIT>')<EOL><DEDENT>if isinstance(members, dict):<EOL><INDENT>for member, score in members.items():<EOL><INDENT>_args += [score, self.valueparse.encode(member)]<EOL><DEDENT><DEDENT>else:<EOL><INDENT>_args += [score, self.valueparse.encode(members)]<EOL><DEDENT>if nx and xx:<EOL><INDENT>raise InvalidOperation('<STR_LIT>')<EOL><DEDENT>with self.pipe as pipe:<EOL><INDENT>return pipe.execute_command('<STR_LIT>', self.redis_key(name), *_args)<EOL><DEDENT>
Add members in the set and assign them the score.

:param name: str     the name of the redis key
:param members: a list of item or a single item
:param score: the score the assign to the item(s)
:param nx:
:param xx:
:param ch:
:param incr:
:return: Future()