update
abstract suspend fun update(key: String, data: ByteString, partitionId: String? = null, expiration: Instant? = null)
Updates data that is already stored in the engine.
The data can later be retrieved using get. The record with the given key (or (partitionId, key) pair when partitions are enabled) must exist in the database or NoRecordStorageException will be thrown.
key the key used to identify the data.
partitionId secondary key. If partitioning is supported (see StorageTableSpec.supportExpiration), it must be non-null. If partitioning is not supported it must be null.
expiration if expiration is not supported (see StorageTableSpec), this must be
null
. Otherwise, if expiration is given, it is updated, and if it isnull
, it is left as it was before.data the data to store.