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 = uniqueTempFile(file), 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

Link copied to clipboard
fun uniqueTempFile(file: Path): Path

A staging path unique to a single codec, of the form <file>.<random>.temp.