write

abstract fun write(key: String, value: String)(source)

Stores value under key, replacing any existing entry. Values are stored exactly, including leading/trailing whitespace. To remove an entry, call delete.

Throws

if the backend is unavailable or the write fails.

if key is blank, key contains NUL/CR/LF, value is blank, or value contains NUL.