retrieve

abstract suspend fun retrieve(key: PersistentStorageKey): Result<ByteArray?>

Retrieves data for a given key.

Return

Result.success with the stored bytes (or null if no data stored), Result.failure with exception otherwise

Parameters

key

The storage key to retrieve