set
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.
Skips equal payload encoding while still resetting transient status.
Results without payload retain the last saved data; invalidate explicitly clears it.