Update the overflow algorithm of successive INCRBY operations :param overflow: Overflow algorithm, one of WRAP, SAT, FAIL. See the Redis docs for descriptions of these algorithmsself. :returns: a :py:class:`BitFieldOperation` instance.
(self, overflow: str)
| 2506 | self.overflow(self._default_overflow or self._last_overflow) |
| 2507 | |
| 2508 | def overflow(self, overflow: str): |
| 2509 | """ |
| 2510 | Update the overflow algorithm of successive INCRBY operations |
| 2511 | :param overflow: Overflow algorithm, one of WRAP, SAT, FAIL. See the |
| 2512 | Redis docs for descriptions of these algorithmsself. |
| 2513 | :returns: a :py:class:`BitFieldOperation` instance. |
| 2514 | """ |
| 2515 | overflow = overflow.upper() |
| 2516 | if overflow != self._last_overflow: |
| 2517 | self._last_overflow = overflow |
| 2518 | self.operations.append(("OVERFLOW", overflow)) |
| 2519 | return self |
| 2520 | |
| 2521 | def incrby( |
| 2522 | self, |