LocalStorage

interface LocalStorage : Module

Types

Link copied to clipboard

Functions

Link copied to clipboard
open fun configure()
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>)