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

Method reset

redis/commands/core.py:2500–2506  ·  view source on GitHub ↗

Reset the state of the instance to when it was constructed

(self)

Source from the content-addressed store, hash-verified

2498 self.reset()
2499
2500 def reset(self):
2501 """
2502 Reset the state of the instance to when it was constructed
2503 """
2504 self.operations = []
2505 self._last_overflow = "WRAP"
2506 self.overflow(self._default_overflow or self._last_overflow)
2507
2508 def overflow(self, overflow: str):
2509 """

Callers 2

__init__Method · 0.95
executeMethod · 0.95

Calls 1

overflowMethod · 0.95

Tested by

no test coverage detected