summaryrefslogtreecommitdiff
path: root/searx/shared/shared_abstract.py
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2022-07-15 18:38:32 +0200
committerAlexandre Flament <alex@al-f.net>2022-11-05 12:04:50 +0100
commitfe419e355bf1527c51e3aee98495d08b89510320 (patch)
tree0ed03d5e3d77e68ac5a5834e5890f5f27fe29fe7 /searx/shared/shared_abstract.py
parentd764d94a70b0b10291105a867227975d59af5675 (diff)
The checker requires Redis
Remove the abstraction in searx.shared.SharedDict. Implement a basic and dedicated scheduler for the checker using a Redis script.
Diffstat (limited to 'searx/shared/shared_abstract.py')
-rw-r--r--searx/shared/shared_abstract.py22
1 files changed, 0 insertions, 22 deletions
diff --git a/searx/shared/shared_abstract.py b/searx/shared/shared_abstract.py
deleted file mode 100644
index af4be30ae..000000000
--- a/searx/shared/shared_abstract.py
+++ /dev/null
@@ -1,22 +0,0 @@
-# SPDX-License-Identifier: AGPL-3.0-or-later
-# pyright: strict
-from abc import ABC, abstractmethod
-from typing import Optional
-
-
-class SharedDict(ABC):
- @abstractmethod
- def get_int(self, key: str) -> Optional[int]:
- pass
-
- @abstractmethod
- def set_int(self, key: str, value: int):
- pass
-
- @abstractmethod
- def get_str(self, key: str) -> Optional[str]:
- pass
-
- @abstractmethod
- def set_str(self, key: str, value: str):
- pass