mirror of
https://github.com/searxng/searxng.git
synced 2025-07-13 08:19:17 +02:00
[mod] searx.shared: minor tweaks
searx.shared.shared_abstract.SharedDict inherit from abc.ABC searx.shared.shared_uwsgi.schedule can schedule multiple functions without issue
This commit is contained in:
parent
87bafbc32b
commit
a0c8b413a6
2 changed files with 10 additions and 3 deletions
|
@ -1,15 +1,21 @@
|
|||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
from abc import ABC, abstractmethod
|
||||
|
||||
class SharedDict:
|
||||
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue