store

abstract suspend fun store(key: PersistentStorageKey, value: ByteArray): Result<Unit>

Stores data for the given key.

Return

Result.success if stored, Result.failure with exception otherwise

Parameters

key

The storage key (from PersistentStorageKey)

value

The raw bytes to store