KStore

constructor(default: T? = null, enableCache: Boolean = true, codec: Codec<T>)

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