ConfigCache

interface ConfigCache(source)

A cache API used to make custom cache implementations.

Inheritors

SharedPreferencesCache
UserDefaultsCache
LocalStorageCache

Functions

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

Gets the actual value from the cache identified by the given key.

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

Writes the given value to the cache by the given key.