read

open suspend override fun read(key: StoreKey): ByteArray?

Read the bytes stored under key, or null if the key has no entry — never written, or deleted.

Called on startup to recover state written by the previous session.

null means absence and nothing else. A read that fails throws an Exception instead — see Failures above for why answering null there would destroy the value.