2021-01-05 10:22:48 +00:00
|
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
2021-01-11 17:44:39 +00:00
|
|
|
from abc import ABC, abstractmethod
|
2021-01-05 10:22:48 +00:00
|
|
|
|
|
|
|
|
2021-01-11 17:44:39 +00:00
|
|
|
class SharedDict(ABC):
|
|
|
|
|
|
|
|
@abstractmethod
|
2021-01-05 10:22:48 +00:00
|
|
|
def get_int(self, key):
|
|
|
|
pass
|
|
|
|
|
2021-01-11 17:44:39 +00:00
|
|
|
@abstractmethod
|
2021-01-05 10:22:48 +00:00
|
|
|
def set_int(self, key, value):
|
|
|
|
pass
|
|
|
|
|
2021-01-11 17:44:39 +00:00
|
|
|
@abstractmethod
|
2021-01-05 10:22:48 +00:00
|
|
|
def get_str(self, key):
|
|
|
|
pass
|
|
|
|
|
2021-01-11 17:44:39 +00:00
|
|
|
@abstractmethod
|
2021-01-05 10:22:48 +00:00
|
|
|
def set_str(self, key, value):
|
|
|
|
pass
|