mirror of
https://github.com/searxng/searxng.git
synced 2025-07-13 08:19:17 +02:00
[enh] add searx.shared
shared dictionary between the workers (UWSGI or werkzeug) scheduler: run a task once every x seconds (UWSGI or werkzeug)
This commit is contained in:
parent
9c581466e1
commit
6e2872f436
7 changed files with 156 additions and 1 deletions
15
searx/shared/shared_abstract.py
Normal file
15
searx/shared/shared_abstract.py
Normal file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue