getInt
Reads the Int value stored under key, returning defValue if absent.
Return
The stored integer, or defValue.
Parameters
key
Storage key to look up.
defValue
Value returned when key is not found.
Throws
if the stored value cannot be read or cast to Int.
for any other storage-layer error.
CancellationException
if the calling coroutine is cancelled.