fix(tasks): 🐛 Flush not working.

This commit is contained in:
Nyeki.py
2024-11-05 00:47:13 -03:00
parent 9fef2c089b
commit 8af01ae327
9 changed files with 94 additions and 96 deletions
+2 -2
View File
@@ -264,7 +264,7 @@ class RunnableHashMixin:
return self.command("HGETALL", str(key))
def hincrby(self, key: str, field: str, increment: int) -> int:
def hincrby(self, key: str, field: str, increment: int = 1) -> int:
"""Increments the number stored at field in the hash stored at key by increment.
If key does not exist, a new key holding a hash is created. If field does not exist the
@@ -274,7 +274,7 @@ class RunnableHashMixin:
Args:
key (str): The key of the hash whose field to increment.
field (str): The field to increment.
increment (int): The amount to increment by.
increment (int, optional): The amount to increment by. Defaults to 1.
Returns:
int: The amount returned