createOrUpdate

abstract suspend fun <T> createOrUpdate(property: Property<T>)(source)

Creates a new property or updates an existing one.

If a property with the same name already exists, it will be updated. Otherwise, a new property will be created.

Implementations should ensure this operation is atomic to prevent race conditions.

Example:

store.createOrUpdate(PropertyString("config-url", "https://api.example.com"))

Parameters

property

Property to create or update