Package-level declarations

Types

Link copied to clipboard
expect abstract class Storage
actual typealias Storage = org.w3c.dom.Storage
actual typealias Storage = org.w3c.dom.Storage
Link copied to clipboard
class StorageCodec<T : @Serializable Any>(key: String, format: StringFormat, serializer: KSerializer<T>, storage: Storage) : Codec<T>

Properties

Link copied to clipboard
expect val localStorage: Storage
actual val localStorage: Storage
actual val localStorage: Storage

Functions

Link copied to clipboard
inline fun <T : @Serializable Any> StorageCodec(key: String, format: StringFormat = DefaultJson, storage: Storage = localStorage): StorageCodec<T>
Link copied to clipboard
inline fun <T : @Serializable Any> storeOf(key: String, default: T? = null, enableCache: Boolean = true, format: StringFormat = DefaultJson, storage: Storage = localStorage): KStore<T>

Creates a store with StorageCodec