MCPcopy
hub / github.com/redis/redis-py / overflow

Method overflow

redis/commands/core.py:2508–2519  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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,

Callers 4

resetMethod · 0.95
incrbyMethod · 0.95

Calls 1

appendMethod · 0.45

Tested by 2