def incr(self, field, amount=<NUM_LIT:1>, pipe=None):
with self._pipe(pipe) as pipe:<EOL><INDENT>core = self.core(pipe=pipe)<EOL>new_amount = core.hincrby(self.key, field, amount)<EOL>self._expire(pipe=pipe)<EOL>ref = core.hget(self.key, field)<EOL>def cb():<EOL><INDENT>"""<STR_LIT>"""<EOL>self._data[field] = ref.result<EOL><DEDENT>pipe.on_execute(cb)<EOL>return new_amount<EOL><DEDENT>
Increment a field by a given amount.
Return the future

Also update the field.

:param field:
:param amount:
:param pipe:
:return: