Package-level declarations

Types

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

Functions

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

Creates a store with FileCodec with json serializer

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

Creates a store with FileCodec