mirror of
https://github.com/searxng/searxng.git
synced 2025-12-30 15:40:03 +00:00
add rate limiting per engine
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user