summaryrefslogtreecommitdiff
path: root/searx/shared/shared_abstract.py
blob: b1c72aabe358ba06f46aa892d747914dd6dd0b0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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