add rate limiting per engine

This commit is contained in:
Marc Abonce Seguin
2022-04-24 23:52:13 -05:00
parent 666cd1f635
commit 85eca4fb22
8 changed files with 90 additions and 8 deletions

View File

@@ -10,7 +10,7 @@ class SharedDict(ABC):
pass
@abstractmethod
def set_int(self, key: str, value: int):
def set_int(self, key: str, value: int, expire: Optional[int] = None):
pass
@abstractmethod
@@ -18,5 +18,5 @@ class SharedDict(ABC):
pass
@abstractmethod
def set_str(self, key: str, value: str):
def set_str(self, key: str, value: str, expire: Optional[int] = None):
pass