Source code for flask_constance.backends.base
import typing as t
[docs]class Backend(t.Protocol):
"""Base backend class."""
[docs] def get(self, name: str) -> t.Any:
...
[docs] def set(self, name: str, value: t.Any) -> None:
...
[docs]class BackendCache(t.Protocol):
"""Base backend cache class."""
[docs] def get(self, name: str) -> t.Any:
...
[docs] def set(self, name: str, value: t.Any) -> None:
...
[docs] def invalidate(self, name: str) -> None:
...