KStore
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
Parameters
default
returns this value if the decoder returns null. defaults to null
enableCache
maintain a cache. If set to false, it always reads from decoder
codec
codec to use to encode/decode a value with/from