def set(self, name, value, ex=None, px=None, nx=False, xx=False):
with self.pipe as pipe:<EOL><INDENT>value = self.valueparse.encode(value)<EOL>return pipe.set(self.redis_key(name), value,<EOL>ex=ex, px=px, nx=nx, xx=xx)<EOL><DEDENT>
Set the value at key ``name`` to ``value``

``ex`` sets an expire flag on key ``name`` for ``ex`` seconds.

``px`` sets an expire flag on key ``name`` for ``px`` milliseconds.

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

``xx`` if set to True, set the value at key ``name`` to ``value`` if it
already exists.

:return: Future()