mirror of
https://github.com/searxng/searxng.git
synced 2024-11-14 00:30:15 +01:00
a0c8b413a6
searx.shared.shared_abstract.SharedDict inherit from abc.ABC searx.shared.shared_uwsgi.schedule can schedule multiple functions without issue
22 lines
368 B
Python
22 lines
368 B
Python
# 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
|