Package-level declarations

Types

Link copied to clipboard
class FileCodec<T : @Serializable Any>(file: Path, json: Json, serializer: KSerializer<T>) : Codec<T>

Functions

Link copied to clipboard
inline fun <T : @Serializable Any> FileCodec(file: Path, json: Json = DefaultJson): FileCodec<T>

Creates a store with FileCodec with json serializer

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

inline fun <T : @Serializable Any> storeOf(file: Path, default: T? = null, enableCache: Boolean = true, json: Json = DefaultJson): KStore<T>

Creates a store with FileCodec