summaryrefslogtreecommitdiff
path: root/searx/shared/shared_abstract.py
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2021-01-05 11:22:48 +0100
committerAlexandre Flament <alex@al-f.net>2021-01-12 11:47:17 +0100
commit6e2872f43625aba71eba019e16f7fbd74743f590 (patch)
tree858625b7b0410503c41e8ccca14b28202d13c961 /searx/shared/shared_abstract.py
parent9c581466e136f7cb82d5ffe6c052fbd9e93ab39f (diff)
[enh] add searx.shared
shared dictionary between the workers (UWSGI or werkzeug) scheduler: run a task once every x seconds (UWSGI or werkzeug)
Diffstat (limited to 'searx/shared/shared_abstract.py')
-rw-r--r--searx/shared/shared_abstract.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/searx/shared/shared_abstract.py b/searx/shared/shared_abstract.py
new file mode 100644
index 000000000..3fede417e
--- /dev/null
+++ b/searx/shared/shared_abstract.py
@@ -0,0 +1,15 @@
+# SPDX-License-Identifier: AGPL-3.0-or-later
+
+class SharedDict:
+
+ def get_int(self, key):
+ pass
+
+ def set_int(self, key, value):
+ pass
+
+ def get_str(self, key):
+ pass
+
+ def set_str(self, key, value):
+ pass