LocalStorage

interface LocalStorage

Functions

Link copied to clipboard
abstract suspend fun delete(key: String)
Link copied to clipboard
abstract suspend fun <T : Any> read(key: String, settings: LocalStorageSetting, decoding: (ByteArray) -> T): T?
abstract suspend fun <T : Any> read(key: String, settings: LocalStorageSetting, serializer: DeserializationStrategy<T>): T?
Link copied to clipboard
abstract suspend fun <T : Any> store(key: String, value: T, settings: LocalStorageSetting, encoding: (T) -> ByteArray)
abstract suspend fun <T : Any> store(key: String, value: T, settings: LocalStorageSetting, serializer: SerializationStrategy<T>)