KeyValueStore

interface KeyValueStore

A tiny async key/value store. The Android module provides one backed by encrypted storage (the token) and one by DataStore preferences.

Inheritors

Functions

Link copied to clipboard
abstract suspend fun get(key: String): String?

Reads key, or null when absent.

Link copied to clipboard
abstract suspend fun remove(key: String)

Removes key.

Link copied to clipboard
abstract suspend fun set(key: String, value: String)

Writes value under key.