fix(tasks): 🐛 Flush not working.
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user