summaryrefslogtreecommitdiff
path: root/searx/shared/shared_abstract.py
diff options
context:
space:
mode:
Diffstat (limited to 'searx/shared/shared_abstract.py')
-rw-r--r--searx/shared/shared_abstract.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/searx/shared/shared_abstract.py b/searx/shared/shared_abstract.py
new file mode 100644
index 0000000..b1c72aa
--- /dev/null
+++ b/searx/shared/shared_abstract.py
@@ -0,0 +1,21 @@
+# SPDX-License-Identifier: AGPL-3.0-or-later
+from abc import ABC, abstractmethod
+
+
+class SharedDict(ABC):
+
+ @abstractmethod
+ def get_int(self, key):
+ pass
+
+ @abstractmethod
+ def set_int(self, key, value):
+ pass
+
+ @abstractmethod
+ def get_str(self, key):
+ pass
+
+ @abstractmethod
+ def set_str(self, key, value):
+ pass