add queued command save and clear hook
@@ -22,6 +22,15 @@ class Config:
self.compiling = COMPILING_IN_PROGRESS # is loading redis commands?
self.completer_max = 300
self.transaction = False
+ # for transaction render
+ self.queued_commands = []
+
+ def __setter__(self, name, value):
+ # for every time start a transaction
+ # clear the queued commands first
+ if name == "transaction" and value is True:
+ self.queued_commands = []
+ super().__setattr__(name, value)
config = Config()
