set

open override fun set(value: T?)(source)

Synchronous write for small values. Throws on codec failure, preserving the prior state. Prefer setAsync for expensive payloads; this method runs on the calling thread.


open override fun set(value: T?, distinct: Boolean)(source)

Skips equal payload encoding while still resetting transient status.


fun set(value: DataResult<T>)(source)

Results without payload retain the last saved data; invalidate explicitly clears it.