ovok_sdk.storage
Key-value storage the client keeps its session in.
- Stable unknown
- Release candidate since 0.1.0-rc.4
- Development since 0.1.0-dev.25+2ba84b0
Key-value storage the client keeps its session in.
OvokStorage
OvokStorage()Bases: Protocol
String storage for the session; implement it to persist sign-ins across restarts.
get_item()
get_item(key: str) -> str | NoneReturn the value stored under key, or None when there is none.
set_item()
set_item(key: str, value: str) -> NoneStore value under key, replacing any earlier value.
remove_item()
remove_item(key: str) -> NoneDelete key; a missing key is not an error.
MemoryStorage
MemoryStorage()In-process OvokStorage; the default, so sessions end with the process.
get_item()
get_item(key: str) -> str | NoneReturn the value stored under key, or None when there is none.
set_item()
set_item(key: str, value: str) -> NoneStore value under key, replacing any earlier value.
remove_item()
remove_item(key: str) -> NoneDelete key; a missing key is not an error.
Last updated on