Package-level declarations

Types

Link copied to clipboard
interface Codec<T : @Serializable Any>

Encoding and decoding behavior that is used by the store

Link copied to clipboard
class KStore<T : @Serializable Any>(default: T? = null, enableCache: Boolean = true, codec: Codec<T>) : AutoCloseable

Creates a store with a custom encoder and a decoder

Properties

Link copied to clipboard
val DefaultJson: Json

Functions

Link copied to clipboard
inline fun <T : @Serializable Any> storeOf(codec: Codec<T>, default: T? = null, enableCache: Boolean = true): KStore<T>

Creates a store with a given codec