def set(self, name, value, nx=False):
with self.pipe as pipe:<EOL><INDENT>core = self.core(pipe=pipe)<EOL>method = core.hsetnx if nx else core.hset<EOL>return method(self.shard(name), name, value)<EOL><DEDENT>
Set the value at key ``name`` to ``value``

``nx`` if set to True, set the value at key ``name`` to ``value`` if it
does not already exist.

:return: Future()