def set(self, key, value): setting = Setting(key = key, value = value) setting.store()
def get(self, key): setting = Setting(key = key) setting.retrieve() return setting.value