def hmset(self, name, mapping):
with self.pipe as pipe:<EOL><INDENT>m_encode = self.memberparse.encode<EOL>mapping = {m_encode(k): self._value_encode(k, v)<EOL>for k, v in mapping.items()}<EOL>return pipe.hmset(self.redis_key(name), mapping)<EOL><DEDENT>
Sets or updates the fields with their corresponding values.

:param name: str     the name of the redis key
:param mapping: a dict with keys and values
:return: Future()